r/PythonLearning • u/asshishmeena96 • Sep 06 '25
In python how to create cases are cherry game ?
It's like a encryption decryption game . In which user provide message , shift_number as integer like how much the character shift in alfabets like user type A and shift by 2 then encrypted character will be C and encode_or_decode it a string for what you want encode or decode.
2
u/CptMisterNibbles Sep 06 '25
What are you asking? Do you want help with particular parts? There’s not really a reason to just code it for you, but I can explain how you might do this or that.
-1
u/asshishmeena96 Sep 06 '25
Yes please explain is there two functions needed or we do this by just writing one single function
1
u/woooee Sep 06 '25
One single function. Decrypt is the reverse of encrypt, so you tell the single function if you want a positive or negative shift.
3
3
u/FoolsSeldom Sep 06 '25
means nothing to me.
Your post appears to be talking about a simple Caesar cipher encryption/decryption game, which is described in many places.
Do you have a question?