numbers = [3, 1, 4, 1, 5, 9, 2]

#numbers[0] - the value would be 3
#numbers[-1] -
#numbers[3] - the value would be 1
#numbers[:-1] -
#numbers[3:4] -
#5 in numbers - the value would be true
#7 in numbers - the value would be false
#"3" in numbers - the value would be false
#numbers + [6, 5, 3] - will print the list adding the new numbers to the end.


print(numbers[0])
print(numbers[-1])
print(numbers[3])
print(numbers[:-1])
print(numbers[3:4])
print(5 in numbers)
print(7 in numbers)
print("3" in numbers)
print(numbers + [6, 5, 3])

numbers[0] = '10'
print(numbers[0])
numbers[-1] = '1'
print(numbers[-1])
print(numbers[2:])
check_number = '9'
if 9 in numbers:
    print("It's in the list")

else:
    print('Not in the list')