1. Home
  2. /
  3. Blog
  4. /
  5. Python Program to Check the File Size
Python

Python Program to Check the File Size

September 27, 2022 1 min read 2,251
Python Program to Check the File Size
num = int(input("Enter a number: "))   import os  file_stat = os.stat('my_file.txt') print(file_stat.st_size)
Share:
Read next

Related articles