Answers for "what does input do in python"

93

python input

#Collecting The Input As A Variable:#
name = input('Please enter your name: ')
#Printing The Variable:#
print(name)
#Checking The Variable And Printing Accordingly:#
if name == 'Joe':
  print('Joe Mama')
Posted by: Guest on August-09-2020
17

python input

# The function 'input()' asks the user for input
myName = input()
Posted by: Guest on February-21-2020
10

python how to use input

#basic user handling for begginers

x = input("your question here") # when someone types something here that answer will be saved and be used for later

# for example 
print(x)
Posted by: Guest on March-25-2020
1

input function python

make_a_variable_name = input("Put whatever question, or prompt as Python calls it, that the person will answer here.")
Posted by: Guest on January-23-2021
1

input in python

age = input("Your age: ")
print("Your age is: " + age)

# defines input as a string and prints it out
Posted by: Guest on October-05-2020

Code answers related to "what does input do in python"

Python Answers by Framework

Browse Popular Code Answers by Language