I'm trying to get the two last letters of each word in a text file containing a lot of text. And I'm supposed to use slice notations or something similar to solve this. Say the text is this: " I wanna learn how to slice up letters of each of these words and make a list out of to print when running the program."
And I want to slice up each word and print out the last two letters of each word. Any help is appreciated, thanks in advance. Hopefully..