Advertisement
ESASTechnology

Read Len

May 14th, 2024 (edited)
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. import os
  2.  
  3. with open("pi.txt","r") as file:
  4.     piread = file.read()
  5.     lenpi = len(piread)
  6.     print(lenpi)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement