Vidyalelo
Python · Q30

Python MCQs: Variable Names and Operators Chapter

Programming · Python · question 30

Q30

What is the result of "hello" * 3 ?

A.
"hellohellohello"
Answer
B.
"hello3"
C.
"3hello"
D.
"hhheeellllllooo"

Answer: Option A

Solution

Answer: Option A
Solution:
The * operator repeats a string a specified number of times.