cs50/src6/1/hello2.py

7 lines
143 B
Python

# get_string and print, with format strings
from cs50 import get_string
answer = get_string("What's your name? ")
print(f"hello, {answer}")