KnowledgeBoat Logo
|

Computer Science

"abc" * 2 will give abc*2 as output.

Python String Manipulation

2 Likes

Answer

False

Reason — In Python, the * operator, when used with a string and an integer, repeats the string the specified number of times. So, "abc" * 2 means the string "abc" is repeated twice, resulting in "abcabc".

Answered By

1 Like


Related Questions