Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 382 Bytes

File metadata and controls

18 lines (14 loc) · 382 Bytes

What Did I Learn?

In this challenge I learned:

  1. We had to do a while loop with limit range breaking check
while count < k and (i + count) < len(s):
  1. Making the sum of the letters
countSum += ord(s[i + count].lower()) - ord('a')
  1. Converting the resulting sum into the respective letter
ans += chr(ord('a') + (countSum % 26))