New course! Every coder should learn Generative AI!
Try a free lesson3 Answers
+ 4
With lists.
a = [1, 2, 3]
+ 3
In python, lists are very similar to arrays. The biggest difference might be, that you don't have to predefine its size. You access it the same way you do in c:
print(a[1])
0
Hello