Skip to content

Latest commit

 

History

History
executable file
·
40 lines (24 loc) · 596 Bytes

input.md

File metadata and controls

executable file
·
40 lines (24 loc) · 596 Bytes

input

Examples in Python 3

"""
Getting input and saving it to variable
"""
inp = input("Enter your name: ")
print(inp)
print(type(inp))	# Input is a string


inp = input("Enter your age: ")
print(inp)
print(type(inp))	# Input is a string


"""
Wait for user to input any key
"""
input("Press any key to continue...")

Reference and read more

input()

Revision history

2014-07-16 (sylvanas) PA1 First try.