prompt in python code example
Example 1: how to get user inout in python
test = input()
test = input("Please enter your information: ")
test = int(input("Please enter your information: "))
Example 2: pythn programme for adding user unputs
num1 = input('Enter first number: ')
num2 = input('Enter second number: ')
sum = float(num1) + float(num2)
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
Example 3: python read input
entered_input = input()
Example 4: how to accept input from the user in python
a = input("What is your name")
print(a)