Advertisement
Guest User

TRY EXCEPT ERROR

a guest
May 29th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. try:
  2.        lel = who.strip()[-3]
  3.        lal = str(lel)
  4.        lol = who.split(lal)[0]
  5.        lal = int(lel)
  6.        st = len(lol)
  7.        whoo = who[st:-1]
  8.       except ValueError:
  9.        try:
  10.         lel = who.strip()[-2]
  11.         lal = str(lel)
  12.         lol = who.split(lal)[0]
  13.         lal = int(lel)
  14.         st = len(lol)
  15.         whoo = who[st:-1]
  16.        except ValueError:
  17.         lel = who.strip()[-1]
  18.         lal = str(lel)
  19.         lol = who.split(lal)[0]
  20.         lal = int(lel)
  21.         st = len(lol)
  22.         whoo = who[st:-1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement