Guest User

Untitled

a guest
Jul 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. while not name.isalpha():
  2. print('Entered Name is invalid')
  3. name = input('Please Enter Your Name Sir: ')
  4. if name.isalpha() or name.isspace():
  5. print('Hello Mr.' + name)
  6. select_mmenu('main-menu.txt')
  7.  
  8. if all(lett.isalpha() or lett.isspace() for lett in name):
  9.  
  10. import re # at the top of your module
  11.  
  12. if re.match(r"[sw]+", name):
Add Comment
Please, Sign In to add comment