Question: Print each word in the following string using slicing so that each words appears on its own line. Don't use .split s = I
Print each word in the following string using slicing so that each words appears on its own line. Don't use .split s = "I am a Jedi like my father before me" print(s[0:1]) #1 print(s[2:4]) # am ..... and so on..
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
Solution To print each word in the string s using slicing ... View full answer
Get step-by-step solutions from verified subject matter experts
