Advertisement
Guest User

Python Example

a guest
Nov 10th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. x = 'flameeeeeeeeeeeeeeee'
  2. while x[-1] == 'e':
  3.     x = x[:-1]
  4. print x
  5.  
  6. x = 'flameeeeeeeeeeeeeeee'
  7. while x[-1] in ('e','m'):
  8.     x = x[:-1]
  9. print x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement