Answers for "python array in function"

2

array python

#create array
list = [1, 2, 3, 4, 5] 
  
#loop through an array
for i in list: 
    print(i)
Posted by: Guest on December-19-2020
3

arrays in python

# In python, arrays are actually called lists. Same thing tho
list_or_array = [1.0, 2, '3', True, [1, 2, 3, 4]]
"""
So, list can contain floats, integers, strings, booleans, nested lists, and 
practically any other datatype
"""
Posted by: Guest on February-03-2021

Code answers related to "python array in function"

Python Answers by Framework

Browse Popular Code Answers by Language