Python

Python Menu

Definition

The tell() method returns the current file position in a file stream.

Syntax

file.tell()

Parameters

No Parameters.

Examples:

f = open("myFile.txt", "r")
print(f.tell())

Introduction

Python Basics

Python Advance

Data Science Python Tutorials

Python Functions and Methods