Python Output Prediction Easy +10 XP
String Multiply
What is the output?
PythonRead-only
print("ab" * 3)What is the output?
Show answer and explanation
Answer: ababab
Multiplying a string by an integer repeats it that many times.
Hint: * repeats strings.
What this challenge tests
Output Prediction in Python: strings, operators.