0

Why doesn't it work?

I tried to make a multiplicatiob table...thank you https://code.sololearn.com/cWB0C3JMaGF6/?ref=app https://code.sololearn.com/cWB0C3JMaGF6/?ref=app

4th Jun 2019, 8:40 AM
Namir
Namir - avatar
1 Odpowiedź
+ 2
It doesn't work, because you didn't add the result to the string, and x * 1 has to be a string x = 10 print("10 * 1 = " + str(x * 1)) Alternatively, you can use a comma: x = 10 print("10 * 1 = ", x * 1)
4th Jun 2019, 8:47 AM
Airree
Airree - avatar