Hey! I'm a little lost with this can someone help me please?
Computer should generate 4 random numbers from 1 - 9 as the "Secret Code".
User should be prompted for their guess of those four numbers.
After they provide their full guess, the user is told how many are correct.
As long as the user does not get all four correct, they keep getting asked for their guess.
After the user finally gets all of them correct (yes - all four), they are congratulated and then told how many tries it took them.
Use at least one list
Use at least one function with parameters
what happens is that you look at the amount correct by setting that to 0, and then you just check if each item matches in the generated array, but then if they do match, you just add correct by 1. Afterward, finally you do it again if the correct wasn't 4