pushing using magit yay
This commit is contained in:
parent
d2e57f15f2
commit
b4071ec660
14 changed files with 355 additions and 0 deletions
18
sami/learn-python-the-hard-way/ex15.py
Normal file
18
sami/learn-python-the-hard-way/ex15.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
from sys import argv
|
||||
|
||||
script, filename = argv
|
||||
|
||||
|
||||
txt = open(filename)
|
||||
|
||||
print(f"Here's your file {filename}:")
|
||||
print(txt.read())
|
||||
|
||||
print("Type the filename again:")
|
||||
file_again = input("> ")
|
||||
|
||||
|
||||
txt_again = open(file_again)
|
||||
|
||||
|
||||
print(txt_again.read())
|
||||
Loading…
Add table
Add a link
Reference in a new issue