How to print the last word of a list in Python

1 Answer

0 votes
programming = ['Python', 'Java', 'C#', 'C', 'PHP']

print(programming[-1])

'''
run:

PHP

'''

 



answered Sep 22, 2017 by avibootz
...