Untitled

 avatar
unknown
plain_text
10 months ago
2.9 kB
4
Indexable
def show_rose():
    rose = r"""
             .-=-.  
         ___  .'O o\
        (  _)-/ o O-|
        .-'-(_ _ __/  
         \  `  `  /
          `'---'`
    """
    print(rose)

def show_daisy():
    daisy = r"""
              __
         __   \ \_
        /  \   |   `-.
       /    `-.|     `-.
       |     _||   ___  |
       '-..-'__|  |__o|_|
              |  /      \
              | /        \
              |/          \
    """
    print(daisy)

def show_sunflower():
    sunflower = r"""
        .     :     .
     .  |   :   |   :   .
     :--|---:---|---:---:
     :--|---:---|---:---:
     :--|---:---|---:---:
     '  |   :   |   :   '
        :     :     :  
    """
    print(sunflower)

def show_tulip():
    tulip = r"""
        _. - ^ - . _
      , '     _     ' ,
     /        |        \
    |         |         |
    \         |         /
     ' - ._ _ _ _ _ . - '
    """
    print(tulip)

def show_lotus():
    lotus = r"""
         /\ /\ /\ /\
        /  \/  \/  \
       |            |
        \          /
         '-______-'
    """
    print(lotus)

def show_orchid():
    orchid = r"""
         _
      __(.)<
      \___)
    """
    print(orchid)

def show_lily():
    lily = r"""
       ,--./,-.
      / #      \
     |          |
      \        /  
       `._,._,'
    """
    print(lily)

def show_bluebell():
    bluebell = r"""
         /\  
        /  \  
       /    \  
      /______\  
     (_| | | |_)
    """
    print(bluebell)

def show_aster():
    aster = r"""
         .     .  
       .   .     .
     .   . .   .   .
       .    .   .
           .
    """
    print(aster)

def show_iris():
    iris = r"""
         /\
        /  \
       /    \
      /      \
     /________\
    """
    print(iris)

def menu():
    while True:
        print("\n--- Flower Menu ---")
        print("1. Rose")
        print("2. Daisy")
        print("3. Sunflower")
        print("4. Tulip")
        print("5. Lotus")
        print("6. Orchid")
        print("7. Lily")
        print("8. Bluebell")
        print("9. Aster")
        print("10. Iris")
        print("11. Exit")
        
        choice = input("Enter the number of the flower you want to see: ")

        if choice == '1':
            show_rose()
        elif choice == '2':
            show_daisy()
        elif choice == '3':
            show_sunflower()
        elif choice == '4':
            show_tulip()
        elif choice == '5':
            show_lotus()
        elif choice == '6':
            show_orchid()
        elif choice == '7':
            show_lily()
        elif choice == '8':
            show_bluebell()
        elif choice == '9':
            show_aster()
        elif choice == '10':
            show_iris()
        elif choice == '11':
            print("Exiting...")
            break
        else:
            print("Invalid choice. Please enter a number from 1 to 11.")

if __name__ == "__main__":
    menu()
Editor is loading...
Leave a Comment