python input method code example
Example 1: python input
name = input('Please enter your name: ')
print(name)
if name == 'Joe':
print('Joe Mama')
Example 2: how to take input in python
a = input("Enter a string: ")
print("String is: ", a)
b = int(input("Enter an integer: "))
print("Integer is: ", b)
c = float(input("Enter a float value: "))
print("Float value is: ", c)
Example 3: python how to use input
x = input("your question here")
print(x)
Example 4: python input
myName = input()
Example 5: input function python
make_a_variable_name = input("Put whatever question, or prompt as Python calls it, that the person will answer here.")
Example 6: input in python
ans = input('Who invented Microsoft?')
if(ans == 'Bill Gates'):
print('You got the answer')