Answers for "python user input"

86

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
16

how to receive user input in python

var = input("Text: ")
Posted by: Guest on April-25-2020
5

python user input

input('ENter question here')
Posted by: Guest on December-31-2019
1

python user input

x = input("y/n")
Posted by: Guest on January-24-2021
0

python user input

var = raw_input()
# OR
var = input()

""" raw_input can only be a string, but input can be a string, 
integer, or variable. """
Posted by: Guest on February-25-2021
0

python user input

user = input("yes, no\n")
Posted by: Guest on September-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language