0
'17'*'87' is that right or wrong???
plz explain me why that is wrong??
3 Antworten
+ 9
Completely wrong. What would you expect as a result anyway?
+ 7
You can't multiply strings together so that will give an error, if you multiple a string by an integer though it will print the string 'number' amount of times (e.g. "17" * 87 will print 17, 87 times and 17 * "87" will print 87, 17 times)
+ 1
Completely wrong, it isn't possible to multiply strings. @LP4 has explained it in detail. There is no need to enclose numbers in inverted commas unless you want them to behave like a string. Try using print(17*87)