0
Little help needed with input()
If I want to print - "Enter a number" and store it's value in a variable (int/float) and then give output - "Your number is *entered_number* " . What will be the code for this?
2 Respuestas
+ 4
number1 = float(input('Enter your number'))
print ('Your number is: ',number1)
number2 = int(input('Enter your number'))
print ('Your number is: ',number2)
0
entered_number =input('Enter a number: ')
entered_number = int(entered_number)
print ('Your number is: ',entered_number)