GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — learn-python/src/user_input/test_input.py at master · Sibasish/learn-python Expand file tree/ Copy pathtest_input.pyMore file actions 17 lines (11 loc) · 583 Bytes / Copy pathtest_input.pyFile metadata and controls17 lines (11 loc) · 583 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 """User input @see https://docs.python.org/3/library/functions.html#input User input prompts are very helpful when it comes to interactive programming. Not only in games but also in standard file operations, you may want your user to interact with the program. Therefore, the user needs the opportunity to be able to put in information. """ def user_input(): """Input prompt""" # Printing statement to signal the user that we are waiting for input. user_input = input("Please type in your name\n") # Printing a message based on the input. print(f"Welcome, {user_input}!") |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |