+ 1
python
If num is a list variable with five elements, which print statement will output the last element of the list?
2 odpowiedzi
+ 8
If you want the last of a list yet don't know how big it is:
print(num[-1])
+ 4
print(num[4])
If num is a list variable with five elements, which print statement will output the last element of the list?