Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

i was trying to create a python game where you have to write a word in the console in a certain amount of time or else you lose but idk why sometimes the timer works other don’t,i have tried 2 time and i still don’t understand what i did wrong these are the 2 code i tried: this is the first import time import threading
a=False
x=0
def count():
time.sleep(5)
if a == False:
print ("you lose")
else:
print("you win")
def world():
while x != "hello im mark":
print("write hello im mark")
x=input()
else:
a == True
h = threading.Thread(target=count)
z = threading.Thread(target=world)
z.start()
h.start()
this is the second:
import time
import threading
z="hello im mark"
y="1"
a=True
def win():
print("you win")
def count():
time.sleep(5)
if a== True:
print("you lose")
else:
print("you win")
def count_2(y):
while y != z:
print("write "+z)
y=input()
a=True
else:
a == 1
f= threading.Thread(target=count_2,args=y)
g= threading.Thread(target=count)
g.start()
f.start()
mr.tarik098
MassiveSeaGreenAnemone
MassiveSeaGreenAnemone
MassiveSeaGreenAnemone
Ryan
welonswim outtooman
Likith
SalmanZ10
Derek Chong