How arrys are used in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How arrys are used in python

31st Jul 2019, 6:07 PM
Chitra Reddy Chitra
Chitra Reddy Chitra - avatar
2 Answers
0
We don't have built-in arrays in python but instead lists are used as array. List example: a = [1, 'a', 'hello', 7] You can access list by using square brackets: print( a[2] ) Output: hello To know more about lists and its functions follow the link below. :) https://www.w3schools.com/python/python_lists.asp
31st Jul 2019, 6:27 PM
Muhammad Shehzad
Muhammad Shehzad - avatar
31st Jul 2019, 6:25 PM
Paolo De Nictolis
Paolo De Nictolis - avatar