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
3 Answers
+ 1
print("Total : ", int(input())*x)
+ 6
int(x)... X is the parameter in which value can be passed, while input() don't have parameter
0
Choe thank you so much, it workedđđ but, can U explain why input should be inside int function not int inside input function.đ€đ€đ€