Error message saying variable not defined when it is. Python

前端 未结 4 1487
时光取名叫无心
时光取名叫无心 2021-01-28 20:24

I am trying to create a simple encryption program in python using functions but am having a problem where I get an error message when I run the program saying (\'msgReversed\' i

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-28 21:18

    Change your last few lines from this:

    reverseMsg(plaintext)
    (cipher)=encript(msgReversed,k)
    

    To this:

    (cipher)=encript(reverseMsg(plaintext),k)
    

提交回复
热议问题