Answers for "python last n 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 last n of list"

Python Answers by Framework

Browse Popular Code Answers by Language