i want to create a random number generator with a try counter but it said "cant assign to operator" here is what i have so far
import random
number=random.randint(1,10)
print ("i am thinking of a number between 1 and 10")
counter=5
while counter>0:
if number==int(input("guess what the number is: ")):
print("well done")
else:
counter-1=counter #it displays it hear before the 1st counter
print ("your bad try again")
print ("it was" ,number,)