input() and a prompt. The user types 4 and presses Enter.
def ask(prompt):
reply = input(prompt)
return reply * 2
print(ask("n? "), "end")
Do not count the characters the user types. What text does the program itself write on the screen?Log in to join the discussion.
Loading…