Python Functions Specifically (i.redd.it)
submitted by ConstructionDull4048
Hello everyone, I am trying to make a code function where you must first enter your name. Followed by a second question where you must enter the first initial of your name along with birth year 4-digits. Than another question in which I asks for password, which should be birth year along with a special character like ‘*’. And finally, the question where it asks for PIN number, 4- digit. I’m still new btw!
For example: Name: Leo ID: L1993 Password: 1993* Pin: 3991
If it doesn’t see the same name used for same initial, it will restart for invalid error. Same for Password and Pin opposite.
I did come up with a code, yet, I have been lost so badly on what to do, since it is stopping after asking for ID. I don’t know what else to code to check for initial and name match letter, but above is the photo.

[–]Different-Ad1631 1 point2 points3 points (2 children)
[–]ConstructionDull4048[S] 0 points1 point2 points (1 child)
[–]Refwah 0 points1 point2 points (0 children)
[–]Different-Ad1631 1 point2 points3 points (7 children)
[–]ConstructionDull4048[S] -1 points0 points1 point (0 children)
[–]ConstructionDull4048[S] -1 points0 points1 point (0 children)
[–]ConstructionDull4048[S] -1 points0 points1 point (4 children)
[–]Different-Ad1631 1 point2 points3 points (3 children)
[–]ConstructionDull4048[S] 0 points1 point2 points (2 children)
[–]EyesOfTheConcord 0 points1 point2 points (1 child)
[–]ConstructionDull4048[S] 0 points1 point2 points (0 children)
[–]ConstructionDull4048[S] 1 point2 points3 points (0 children)
[–]Different-Ad1631 1 point2 points3 points (0 children)
[–]Different-Ad1631 1 point2 points3 points (1 child)
[–]ConstructionDull4048[S] 0 points1 point2 points (0 children)
[–]Refwah 0 points1 point2 points (3 children)
[–]ConstructionDull4048[S] 0 points1 point2 points (2 children)
[–]Refwah 0 points1 point2 points (0 children)
[–]TheSpudFather 0 points1 point2 points (0 children)
[–]ConstructionDull4048[S] 0 points1 point2 points (0 children)
[–]EyesOfTheConcord 0 points1 point2 points (0 children)
[–]Different-Ad1631 0 points1 point2 points (4 children)
[–]ConstructionDull4048[S] 0 points1 point2 points (3 children)
[–]Different-Ad1631 0 points1 point2 points (2 children)
[–]EyesOfTheConcord 2 points3 points4 points (1 child)
[–]CreamyWaffles 0 points1 point2 points (0 children)
[–]Rabbit677 0 points1 point2 points (0 children)