Python - Programming Language
This course covers the basics of programming in Python. Work your way through the videos and we'll teach you everything you need to know to start your programming journey!

Lists

Lesson 11
Author : Mike Dane
Last Updated : October, 2017


Code

Copylucky_numbers = [4, 8, "fifteen", 16, 23, 42.0]
#       indexes  0  1       2      3   4   5

lucky_numbers[0] = 90
print(lucky_numbers[0])
print(lucky_numbers[1])
print(lucky_numbers[-1])
print(lucky_numbers[2:])
print(lucky_numbers[2:4])
print(len(lucky_numbers))