Plss help in this practice i didn't understand this problem | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Plss help in this practice i didn't understand this problem

Write a program that takes a list as input and outputs the last element of that list. The input list can be of any size.

3rd Aug 2021, 11:02 AM
joser Cuadra
joser Cuadra - avatar
1 Respuesta
+ 3
Hi Joser! split() function is used with input() to take a list as input. If your list's name is a, a[-1] is its the last element. Hope these things help you to understand this practice.
3rd Aug 2021, 11:24 AM
Python Learner
Python Learner - avatar