Home > front end >  Why does this function not return anything? (Python)
Why does this function not return anything? (Python)

Time:07-22

writing a function for a Caesar cipher but it returns nothing

CodePudding user response:

You don't include an return keyword on your code. So nothing is returned. Use this at the end of your code

return new_message

CodePudding user response:

You're printing your message and not returning it so just

return new_message

so you can assign this to something.

  • Related