Advertisement
Guest User

test

a guest
May 3rd, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.        
  4. def questions1():
  5.     sex = input("Are you Male or Female?")
  6.     if sex == ("male"):
  7.         questions2()
  8.     if sex == ("female"):
  9.         questions2()
  10.     else:
  11.         print("Please answer the question correctly")
  12.  
  13. def questions2():
  14.      sex = "male"
  15.      print("So you are", (sex), "?")
  16.    
  17. def main():
  18.     print("Welcome to character creation!\nPlease answer the following questions.")
  19.     areyouready = input("Are you ready to begin?")
  20.     if areyouready == ("yes"):
  21.         questions1()
  22.     else:
  23.         print("Are you sure?")
  24.  
  25. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement