New course! Every coder should learn Generative AI!
Try a free lesson0
How do you multiply a string by an integer
2 Answers
+ 4
By multiplying the string by the integer...
a = "myString"
b = 5 #my int
c = a*b
* is the symbol used to multiply, if that's what you were really wondering.
+ 4
the correct answer is by using the asterisk operator (*)