+ 1

if x = [1, 2, 3, 4, 5], what is the output of print(x[ : ])?

1. [ ] 2. [1, 2, 3] 3. [1, 2, 4, 5] 4. [1, 2, 3, 4, 5]

21st Apr 2020, 8:47 AM
Md. Faruk Hossain
Md. Faruk Hossain - avatar
4 Answers
+ 5
You can check in Sololearn Code Playground
21st Apr 2020, 8:51 AM
A͢J
A͢J - avatar
+ 3
Invalid syntax. Oh, you fixed ☺️, then the answer is: 4.
21st Apr 2020, 10:49 AM
Solo
Solo - avatar
+ 2
the answer is 4
22nd Apr 2020, 10:02 AM
randomnoobprogrammer