Answers for "what does list [:] do in python?"

6

list in python

list = ['apple', 4, 'banana', 'bat', 0.44]

print(list)

#it will print all items in the list
Posted by: Guest on January-11-2022
1

list in python

# List 
a = []
# Dictionary
b = {}
# Tuple
c = ()
# Set
d = {1,2,3}
Posted by: Guest on August-07-2021

Code answers related to "what does list [:] do in python?"

Python Answers by Framework

Browse Popular Code Answers by Language