Could you please tell me what’s wrong with my code?
It looks to work well, but CodeChef says my answer is wrong.Thanks!
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.upper(),lastname[1:].lower()
you can do lastname.capitalize()