jeudi 4 juin 2015

Implement a program that requests a list from the user and prints the first and last elements

Implement a program that requests a non-empty list from the user and prints on the screen a message giving the first and last elements of the list.

Enter a list: [3, 5, 7, 9]
The first list element is 3
The last list element is 9

Aucun commentaire:

Enregistrer un commentaire