+ 2
I need help with my code
print(input("Pick any color: ")) print(input("pick any number: ")) print(int(input("Type a 2 digit number ") * int(12))) this is giving me the 2 digit number 12 times. I typed in int so why isn't multiplying the numbers?
2 odpowiedzi
+ 13
Try this instead:
print(int(input("Type a 2 digit number ") )* int(12))
+ 7
Change the third line to
print(int(input("Type a 2 digit number ") )* 12)
With your position of parentheses, you use the *12 operation on the string containing your two digit number, which just concatenates 12 of them together.