Mastermind Game in Python -
i have looked @ thread python mastermind game troubles on website question asking different have been given different task. this question: generate random 4 digit number. player has keep inputting 4 digit numbers until guess randomly generated number. after each unsuccessful try should how many numbers got correct, not position got right. @ end of game should congratulate user , how many tries took. i have made far: from random import randint n1 = randint (1,9) n2 = randint (1,9) n3 = randint (1,9) n4 = randint (1,9) numberswrong = 0 print (n1,n2,n3,n4) guess1 = input("guess first number") guess2 = input("guess second number") guess3 = input("guess third number") guess4 = input("guess fourth number") guess1 = int (guess1) guess2 = int (guess2) guess3 = int (guess3) guess4 = int (guess4) if guess1 != n1: numberswrong +=1 else: numberswrong +=0 if guess2 != n2: numberswrong +=1 else: numberswrong +=0 if guess3 != ...