Beginner/NITIKA - python 3.5 - need some help

Hello guys!
Could you please tell me what’s wrong with my code?
It looks to work well, but CodeChef says my answer is wrong.Thanks!

My solution / Problem link

In the last name, all the letters except first should be lower case. You have printed them the same as input.

lastname[1:] -> lastname[1:].lower()

Thanks a million!

Or you can do it more pythonic way.
Instead of lastname[0].upper(),lastname[1:].lower()
you can do lastname.capitalize()

1 Like