+ 1
user input
I want to write a simple program such that the number entered is multiplied by 10 ie s = input('enter number:') print(s) what can I do to make this program give the output multiplied by 10 please help
3 Answers
+ 3
You can also make it so that the variable will be saved so you can re-print it without the need of re-multipling:
s = int(input("enter number: ")) * 10
print(s)
+ 2
s = int(input('enter number: \n'))
print(s*10)
use int () for get ghe input as integer and not as string
0
s = int(input('enter number: \n'))
divide = s*10 #you can use var for this
print(divide)