0
What if it was >>> x*="eggs" or what if % was used?? Will you still get spameggs as the output?
>>> x = "spam" >>> print(x) spam >>> x += "eggs" >>> print(x) spameggs
1 Réponse
+ 5
You can't multiply strings, so x *= eggs wouldn't work. You can multiply integers and strings, like 3 * 'spam'. Why don't you just try it out in the playground though?