George_Ivanov05

cs

Jun 9th, 2022
911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def cs_function(word, num=3):
  2.     word = word.upper()
  3.     new = ''
  4.     for i in word:
  5.         new += chr((ord(i) + num) - ord(i))
  6.  
  7.     return new
Advertisement
Add Comment
Please, Sign In to add comment