Give the output of the following Python code:

ICSE Class 10 Robotics & AI PYQ · 2026 Improvement · Section A

1(xx)1 Mark · 2026 · Section A · 2026 Improvement

Give the output of the following Python code:

print("A" * 2)
Show SolutionHide Solution↓

AA

Reason — When a string is multiplied by an integer, Python repeats the string that many times. Here, "A" * 2 repeats the string "A" two times, producing AA.

← Previous questionNext question →

Browse the free Robotics & AI sample bank