Is this a good game for a beginner like me? Python 3

+1 vote
asked Apr 23 by (160 points)
import random
import time
import sys
loading = True
welcome = True
#print('Loading',time.sleep(1),'.',time.sleep(1),'.',time.sleep(1),".")
while loading == True:
    print('L')
    time.sleep(.14)
    print('O')
    time.sleep(.14)
    print('A')
    time.sleep(.14)
    print('D')
    time.sleep(.14)
    print('I')
    time.sleep(.14)
    print('N')
    time.sleep(.14)
    print('G')
    time.sleep(.5)
    loading = False
calltime = True
print("Welcome to The Shelf by WilliamPython1! What would you like to play?")
while calltime == True:
    gamemode = input("8ball, RNG, exit.")
    if gamemode == '8ball' or 'RNG' or 'exit' or 'easteregg':
        #8ball
        if gamemode == '8ball':
            exit8ball = input("Ask a yes or no question to reveal the answer. Type exit to quit.")
            if exit8ball == 'exit':
                print("Thank you for playing.")
                sys.exit()
            randomnum = random.randint(1, 5)
            if randomnum == 1:
                print('Yes.')
                sys.exit()
            elif randomnum == 2:
                print('No.')
                sys.exit()
            elif randomnum == 3:
                print('Please try again.')
                sys.exit()
            elif randomnum == 4:
                print('Maybe. The answer is unclear.')
                sys.exit()
            elif randomnum == 5:
                print("If I told you, I'd Have to kill you.")
                sys.exit()
        #RNG
        elif gamemode == 'RNG':
            numgame = input('Type start to begin the generator. Type exit to quit.')
            if numgame == 'exit':
                print("Thank you for playing.")
            elif numgame == 'start':
                randomnum = random.randint(1, 10)
                if randomnum == 1:
                    quit = input("Your number is 1. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()
                elif randomnum == 2:
                    quit = input("Your number is 2. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()
                elif randomnum == 3:
                    quit = input("Your number is 3. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()
                elif randomnum == 4:
                    quit = input("Your number is 4. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()
                elif randomnum == 5:
                    quit = input("Your number is 5. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()        
                elif randomnum == 6:
                    quit = input("Your number is 6. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()
                elif randomnum == 7:
                    quit = input("Your number is 7. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()
                elif randomnum == 8:
                    quit = input("Your number is 8. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()
                elif randomnum == 9:
                    quit = input("Your number is 9. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()
                elif randomnum == 10:
                    quit = input("Your number is 10. Type exit to quit.")
                    if quit == 'exit':
                        sys.exit()
        elif gamemode == 'exit':
            print('Thank you for playing.')
            sys.exit()
        elif gamemode == 'easteregg':
            print("This one was kind of obvious, wasn't it?")

3 Answers

–4 votes
answered Apr 24 by anonymous 1 flag
no

---12char---
commented Apr 24 by (160 points)
saying no doesnt help.  what can i do to improve
+1 vote
answered Sep 30 by (270 points)
I think this is a good game for a beginner. It would nice if you could add some primitive graphics for the 8-ball and the die inside. AS far as the random #, it would be more fun to have the end user pick a # from 1 - 10 and tell them if there are write or wrong and even create a high-lo game out of it. DAVE
0 votes
answered Oct 7 by anonymous

Instead of the massive chain of if statements for randomnum you could do 

for i in range (10):

    if randomnum == i:

    print("Your number is "+ i +". Type to exit")

Or 

print("Your number is" + randomnum +". Type to exit)

if quit == 'exit':
sys.exit()

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...