What Does It Do – 1

#What Does it Do
import random


#z should be an integer
def Function_X(z):
    for i in range(1,z):
        print(i)
    print(z)

def Function_Y():
    ice_cream={1:'Vanilla',2:'Chocolate',3:'Strawberry',4:'Coffee',5:'Mint'}
    print(ice_cream[2])
    #https://bigolaf.com/ice-cream-flavors/
    ice_cream[6]='Superman'
    for yum in ice_cream:
        print(ice_cream[yum])
    
def Function_Z(a,b):
    GameOn=True
    NumberGuessed=False
    while (GameOn):
        x=random.randint(a,b)
        disp="Guess What Number I'm Thinking?  It's between "+str(a)+" and "+str(b)+": "
        NumberGuessed=False
        while(NumberGuessed==False):
            UsersGuess=int(input(disp))
            if(UsersGuess==x):
                print("You Got It!")
                YN=input("Do you want to play again (Y or N)? ")
                NumberGuessed=True
                if (YN=="Y"):
                    print('Great! ')
                elif (YN=='N'):
                    print("See you later!")
                    GameOn=False
                else:
                    print("That wasn't an option so I'll decide")
                    GameOn=random.choice([True,False])
                    if(GameOn==True):
                        print("I've Decided your playing again")
                    else:
                        print("No more games for you!")
            elif(UsersGuess<x):
                disp="The Number is higher, try again: "
            else:
                disp="The number is lower, try again: "