MCPcopy Create free account
hub / github.com/geekcomputers/Python / welcome

Function welcome

Guessing_Game.py:78–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76
77
78def welcome():
79 print("Hello, Welcome to the Guessing Game!")
80 name = input("I'm Geek! What's Your Name? ")
81 sleep(1)
82
83 print(f"Okay, {name}. Let's Begin The Guessing Game!")
84 print(
85 "Choose a level:",
86 "1. Easy",
87 "2. Medium",
88 "3. Hard",
89 sep="\n",
90 )
91 sleep(1)
92 level = int(input("Pick a number: "))
93 print()
94 sleep(1)
95 if level == 1:
96 easy()
97 try_again()
98 elif level == 2:
99 medium()
100 try_again()
101 elif level == 3:
102 hard()
103 try_again()
104 else:
105 print("INVALID VALUE! Please try again.\n")
106 welcome()
107
108
109welcome()

Callers 2

try_againFunction · 0.70
Guessing_Game.pyFile · 0.70

Calls 4

easyFunction · 0.85
mediumFunction · 0.85
hardFunction · 0.85
try_againFunction · 0.70

Tested by

no test coverage detected