Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
str[str.length - 1]
const lastChar=s=>s.slice(-1)
def reverse(str):
str = list(str)
print(str[::-1])
user = input('enter word: ')
reverse(''.join(user))
#i thinks this would work better
def last_char(str):
return str[-1]
Post your code and I'll take a look at it.
not able to use a second function to calculate sum. The tests seem to be working on them too and complaining about the number of parameters