how to do an input in python code example
Example 1: python input
name = input('Please enter your name: ')
print(name)
if name == 'Joe':
print('Joe Mama')
Example 2: python get input
txt = input("Type something to test this out: ")
print("Is this what you just said? ", txt)
Example 3: how to specify an input type to a function in python
def function(input1: int, input2: float, input3: bool, input4: list, input5: str):
pass
Example 4: input in python
name = input('What is your name')
print('Hello'+ name + ' !')
Example 5: python user input
user = input("yes, no\n")
Example 6: input in python
ans = input('Who invented Microsoft?')
if(ans == 'Bill Gates'):
print('You got the answer')