Creating and using lists and arrays is really simple and fun!
1. Making Lists and Arrays:
my_list = [1, 2, 3]
.int[] myArray = {1, 2, 3};
.2. Finding Elements:
my_list[0]
gives you the first item.my_list[1] = 5
changes the second item to 5.It’s all about getting used to these easy steps!
Have fun coding!
Creating and using lists and arrays is really simple and fun!
1. Making Lists and Arrays:
my_list = [1, 2, 3]
.int[] myArray = {1, 2, 3};
.2. Finding Elements:
my_list[0]
gives you the first item.my_list[1] = 5
changes the second item to 5.It’s all about getting used to these easy steps!
Have fun coding!