Q. What will be the output of this code?

Code:
print('5' * 3)
  • (A) '15'
  • (B) '555'
  • (C) '53'
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) '555'
Explanation: Multiplying a string by an integer repeats the string.
Explanation by: Mr. Dubey
Multiplying a string by an integer repeats the string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
121
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate