id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

rot13


Given a string of letters and/or numbers, rotate them in a caesar cipher n times. if n=5, then a = f and 1 = 6. Maintain upper and lower cases and ignore sybols. Numbers wrap from 0-9.


rot13('aBc', 1) → 'bCd'
rot13('zZZZ', 3) → 'cCCC'
rot13('I Like the NuMBER 123456789', 2) → 'K Nkmg vjg PwODGT 345678901'

...Save, Compile, Run (ctrl-enter)

def rot13(s, n):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 200

Copyright Nick Parlante 2017 - privacy