101k views
21 votes
Exercise 7.2.6: If You're Not First, You're Last

Write the function called end_of_word that takes a string and returns everything but the first character.

end_of_word ("boat")
="oat"
end_of_word ("mice")
="ice"​

User Oruchreis
by
4.8k points

1 Answer

2 votes

Answer:

def end_of_word(word):

return word[1:]

print(end_of_word("something"))

Step-by-step explanation:

Your welcome :D

User Macfij
by
4.1k points