Q. What is the output of this code?

Code:
print('a' * 4)
  • (A) aaaa
  • (B) a4
  • (C) aaaaa
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) aaaa
Explanation: Multiplying a string by a number repeats the string.
Explanation by: Mr. Dubey
Multiplying a string by a number repeats the string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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