0

How to multiple input with value

I'm sorry, I am still new to this... My code is x=5 print("Total : " +input() * x) Input = 4 Output = Total : 44444 What is wrong??? What I want is 4*x=20 I try to refer to my lessons, but I couldnt find the answer... Help me please, thank you

3rd Jul 2019, 12:26 PM
Da Daknes
Da Daknes - avatar
3 Answers
+ 1
print("Total : ", int(input())*x)
3rd Jul 2019, 12:42 PM
Choe
Choe - avatar
+ 6
int(x)... X is the parameter in which value can be passed, while input() don't have parameter
3rd Jul 2019, 1:09 PM
Sujithra
0
Choe thank you so much, it worked😆👍 but, can U explain why input should be inside int function not int inside input function.đŸ€”đŸ€”đŸ€”
3rd Jul 2019, 1:01 PM
Da Daknes
Da Daknes - avatar