Mar-29-2018, 08:40 AM
(Mar-28-2018, 09:15 PM)Larz60+ Wrote: 1.
import string
keywords = string.ascii_lowercase def rotate(s, n): return s[n:] + s[:n]example:
Output:>>> x = string.ascii_lowercase >>> rotate(x, 3) 'defghijklmnopqrstuvwxyzabc' >>> >>> rotate(x, -3) 'xyzabcdefghijklmnopqrstuvw'
Sorry but i don't understand how to use this :( I'm begginer so i really don't know what to do with your code.