Advertisement
TheOblivior

Fonction Python Décaler

Nov 26th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. def Decaler(x,d):
  2.     x=str(x)
  3.     while d!=0 :
  4.         y=len(x)-1
  5.         mot=x[y]
  6.         for i in range(0,y):
  7.             mot=mot+x[i]
  8.         d=d-1
  9.         x=mot
  10.     if d==0:
  11.         print(mot)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement