text: '''
  alphabet -a b c d e f g h ...
  code - d e f g h i j k ...
  key: 3
  
  text - baca
  code - edfd
  '''
  
  
  import string
  
  
  def cezar(text: str, key: int) -> str:
      alphabet = string.ascii_lowercase
      code = alphabet[key:] + alphabet[:key]
      table = str.maketrans(alphabet, code)
      return text.translate(table)
  