Jump to content

User Input

From Slow Like Wiki
Revision as of 17:51, 16 February 2025 by 193.16.224.14 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using input()


secret = input("Tell me a secret. I promise I won't repeat it: ")
print(f"Your secret was '{secret}'. Oops, sorry!")