SHARE
TWEET

Untitled

a guest Sep 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. def prog(st):
  3.     if st=="":
  4.         return False
  5.     elif st[0]=="0":
  6.         return False
  7.     for i in range(len(st)):
  8.         if st[i] in ("1234567890"):
  9.             return True
  10.         else:
  11.             return False
  12.  
  13. print(prog("abc1"))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top