for samples

This commit is contained in:
Mert Gör ☭ 2023-08-24 13:25:31 +03:00
parent 453e277292
commit fc25070bab
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,3 @@
with open('sample.py', 'r') as f:
l = list(f)
print(l)

View File

@ -0,0 +1,3 @@
with open('sample.py', 'r') as f:
for line in f:
print(line, end='')