1(xx)
Give the output of the following Python code:
print("A" * 2)- (a)A2
- (b)AA
- (c)A22
- (d)Error
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.