Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Python List Multiplication what will be output ? python | py basics | coding #python #pythonquiz

Video information, playback and saved actions.

Python List Multiplication what will be output ? python | py basics | coding #python #pythonquiz

Description: ✅ Correct Answer: A) `[1, 2, 3, 1, 2, 3]`

Explanation:

In Python, the `*` operator with a list repeats its elements the specified number of times.

Here, `my_list * 2` means repeating the entire list two times.

Original list: `[1, 2, 3]`

After mu ... Close description
      
Videos related to "Python List Multiplication what will be output ? python | py basics | coding #python #pythonquiz"