Answers for "Python get last 20 elements of list"

1

python print last 3

message = iloveyouchina
#get last x words
#for example x = 3
print(message[-3:]
Posted by: Guest on July-09-2020

Code answers related to "Python get last 20 elements of list"

Python Answers by Framework

Browse Popular Code Answers by Language