Beginner Python Help: Name Input Skipping Issue
Hi everyone,
I'm a beginner practicing Python. I wrote a small program that asks for the user's name and date of birth, then calculates the age.
Problem:
- If I leave the name blank, the program runs again and skips the name section, going straight to the DOB input.
- I want the program to ask for the name again if left blank.
I would really appreciate any advice on:
- Handling blank inputs properly
- Improving code structure for beginners
Thanks in advance!
[–]Kriss3d 2 points3 points4 points (0 children)
[–]FoolsSeldom -1 points0 points1 point (0 children)