1name = input("What is your name?\n") # Asks the user 'What is your name?' and stores it in the 'name' variable
2
3print("You said your name was " + name)
4
5number = int(input("Please select a random number:\n")) # Will get input as a number
6# Will error if the value entered is not a number
7
8# You can use any type of conversion (int(), bool(), float(), etc.) to modify your input
9
10
1User_Name = str(input("What is your name:- "))
2print("Hi "+User_Name+" It's me python")
1# Store input numbers
2num1 = input('Enter first number: ')
3num2 = input('Enter second number: ')
4
5# Add two numbers
6sum = float(num1) + float(num2)
7
8# Display the sum
9print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))