6 lines
108 B
Python
6 lines
108 B
Python
from pathlib import Path
|
|
|
|
path = Path('guest.txt')
|
|
|
|
name = input("What's your name? ")
|
|
path.write_text(name) |