GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — learn-python/src/user_input/test_input.py at master · Sibasish/learn-python

Expand file tree

/

test_input.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
17 lines (11 loc) · 583 Bytes
/

test_input.py

Copy path

File metadata and controls

17 lines (11 loc) · 583 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.