πŸ“Š Python
Q. What is the output of `print('Hello' * 3)`?
  • (A) Hello3
  • (B) HelloHelloHello
  • (C) Error
  • (D) 3Hello
πŸ’¬ Discuss
βœ… Correct Answer: (B) HelloHelloHello

Explanation: The `*` operator repeats strings in Python. So `'Hello' * 3` results in `HelloHelloHello`.

Explanation by: Rati Dubey
The `*` operator repeats strings in Python. So `'Hello' * 3` results in `HelloHelloHello`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
38
Total Visits
πŸ“½οΈ
4 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
81%
Success Rate