Hello, I need help to solve this exercise, please!
Write a program that allows you to play a simplified version of the Master Mind game. The
game will consist of guessing a string of different numbers. At the beginning, the program must
ask for the length of the string (from 2 to 9 digits). Then the program should ask you to try to guess the string of numbers.
guess the string of numbers. At each attempt, the program will report how many numbers have been guessed correctly (the program will
(the program will consider that a number has been guessed correctly if the value and the position match).
-Tell me the length of the string: 4
-Try to guess the string: 1234
-With 1234 you have guessed 1 values. Try to guess the string: 1243
-With 1243 you guessed 0 values. Try to guess the string: 1432
-With 1432 you guessed 2 values. Try to guess the string: 2431
-With 2431 you guessed 4 values. Congratulations