So i am having trouble with printing as you have noticed with the title
i need to have 2 things print after the 2 menu choices. it is a smiley face creator

 `Inline Code Example Here
 import time
def eyes_menu():
    print "These are your choices for eyes:"
    time.sleep(1)
    print " "
    time.sleep(1)
    print "1.)  Open Wide"
    time.sleep(1)
    print "2.)  Closed"
    time.sleep(1)
    print "3.)  or Squinting"
    time.sleep(1)
    return int(raw_input("What is your choice? "))
def nose_menu():
    print "These are your choices for a nose:"
    time.sleep(1)
    print " "
    time.sleep(1)
    print "1.)  Only nose holes"
    time.sleep(1)
    print "2.)  Triangular"
    time.sleep(1)
    print "3.)  Square"
    time.sleep(1)
    print "4.)  Circular"
    time.sleep(1)
    return int(raw_input("What is your Choice? "))
choice1 = 0
choice1 = eyes_menu()
if choice1 == 1:
    print "    _______          _______"
    print "   /      /         /      /"
    print "  /      /         /      / "
    print " /______/         /______/  "
elif choice1 == 2:
    print "                            "
    print "  ________         ________ "
    print "                            "
    print "                            "
elif choice1 == 3:
    print "  ________         ________ "
    print " [________]       [________]"
    print "                            "
    print "                            "
choice2 = 0
choice2 = nose_menu()
if choice2 == 1:
    print A + B + C + D
    print "                            "
    print "           /  /             "
    print "          /  /              "
    print "                            "
elif choice2 == 2:
    print "            /              "
    print "           /               "
    print "          /                "
    print "         /_ ,_,_           "

this is probably confusing to read ,but i dont know how to put an image in here`

Recommended Answers

All 2 Replies

Please put empty lines and three tilde lines arround your code. Here is your code little edited after recovery from page source with Python massaging:

import time

def delayprint(text, d=0.1):
    for line in text.splitlines():
        print(line)
        time.sleep(d)

def eyes_menu():
    delayprint("""These are your choices for eyes:
    1.)  Open Wide    
    2.)  Closed    
    3.)  or Squinting
    """)
    return int(raw_input("What is your choice? "))

def nose_menu():
    delayprint("""These are your choices for a nose:
    1.)  Only nose holes
    2.)  Triangular
    3.)  Square
    4.)  Circular""")

    return int(raw_input("What is your Choice? "))


choice1 = eyes_menu()
choice2 = nose_menu()
if choice1 == 1:
    print "    _______          _______"
    print "   /      /         /      /"
    print "  /      /         /      / "
    print " /______/         /______/  "
elif choice1 == 2:
    print "                            "
    print "  ________         ________ "
    print "                            "
    print "                            "
elif choice1 == 3:
    print "  ________         ________ "
    print " [________]       [________]"
    print "                            "
    print "                            "

if choice2 == 1:
    print A + B + C + D
    print "                            "
    print "           /  /             "
    print "          /  /              "
    print "                            "
elif choice2 == 2:
    print "            /              "
    print "           /               "
    print "          /                "
    print "         /_ ,"
else:
    print("unimlemented")

Can you tell what is your printing problem?

Thanks,pyTony. Now I can move on with the rest of my coding.
If you want, I can send you the code to see how it turned out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.