Initial work
This commit is contained in:
9
CS1032/practical-2023-10-18/task1.py
Normal file
9
CS1032/practical-2023-10-18/task1.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import random
|
||||
|
||||
randnumber = random.randint(1, 50)
|
||||
|
||||
while True:
|
||||
mynumber = int(input("Please enter a value: "))
|
||||
if randnumber == mynumber:
|
||||
print("[perfect guess, you won....")
|
||||
break
|
||||
Reference in New Issue
Block a user