Concept: user input
input()
get information from users with input()
the input() function prompts the user to supply data returning that data as a string
Example
review and run code - enter a small integer in the text box
print("enter a small int: ")
small_int = input()
print("small int: ")
print(small_int)
Task 1
storing input in a variable
[ ] create code to store input in student_name variable
an input box should when run
[ ] type a name in the input box and press Enter
[ ] determine the type() of student_name
[ ] get input for the variable student_name
[ ] determine the type of student_name
Task 1 continued...
note: input() returns a string (type = str) regardless of entry
if a string is entered input() returns a string
if a number is entered input() returns a string
[ ] determine the type() of input below by entering
a name
an integer (whole number no decimal)
a float a number with a decimal point
[ ] run cell several times entering a name a int number and a float number after adding code below
print("enter a name or number")
test_input = input()
[ ] insert code below to check the type of test_input
On this page of the site you can watch the video online user input - Introduction to Python: Absolute Beginner Module 1 Video 15 with a duration of hours minute second in good quality, which was uploaded by the user Book Simplifiers 24 July 2021, share the link with friends and acquaintances, this video has already been watched 39 times on youtube and it was liked by 3 viewers. Enjoy your viewing!