Q. What will `print('abc' * 2)` output?

  • (A) abcabc
  • (B) abc*2
  • (C) 2abc
  • (D) abcabcabc
πŸ’¬ Discuss
βœ… Correct Answer: (A) abcabc
Explanation: The `*` operator repeats the string specified number of times.
Explanation by: Mr. Dubey
The `*` operator repeats the string specified number of times.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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