Code Explanation:
Step 1: "5" * 2
"5" * 2
The * operator repeats a string.
"5" is repeated 2 times.
Result:
"55"
Step 2: "55" + "3"
"55" + "3"
The + operator joins (concatenates) two strings.
"55" and "3" are combined.
Result:
"553"
Step 3: print()
print("553")
The final output displayed on the screen is:
553
Final Output:
553

0 Comments:
Post a Comment