Python Program to Check the File Size 2022-09-28 num = int(input("Enter a number: ")) import os file_stat = os.stat('my_file.txt') print(file_stat.st_size) Twitter WhatsApp Telegram Facebook