So I am trying to make a wellness checker program and I want to add a little bit of logic in there. If the user does not enter a value within the limit 1-10, I want them to try and input again without restarting the entire program but just from that certain input question, could someone help please? Thanks!
#Project consists of making a program to check your well being and making sure you are doing all right, this will ask questions such as Your name, age, date, happiness level, what has been
#positive and what has been negative, and much more
#All User Data inputted should be saved to a list and an external file.
#Greeting Code
#Give Brief Description of what this program does
print("Hello! Welcome to the Wellness Checker, I am an AI program who you can talk to and tell me what is going on in your life both physically and mentally.")
print("My creator's name is Jessie Dhillon. A Computer Science Major student who had created me for as a final Project for his CSCI 141 Class")
print("Now lets continue onto the program:)")
#Input
print("This is where you are going to input everything you need for me to listen to what's going on in your life")
#Your name
userName = input("Please Enter your Name:")
print("Hello",userName, "Nice to meet you:)")
#Age
userAge = int(input("Please enter your age:"))
#Date
currentDate = input("What is today's date that you are writing to me:")
#Occupancy Status
userOccupancy = input("What is your current occupancy?: (Example: Student, Job, Unemployed, etc)")
#Out of 10, how are you feeling right now
userFeelingLevel = int(input("Out of 10, How are you feeling? Please enter a digit 1 Through 10:"))
if userFeelingLevel <1 or userFeelingLevel >10:
print("Sorry Please Enter a value between 1-10")
#What is a Positive thing that happened
#If nothing positive, give a gentle apology
#What is not going good today
#If nothing negative, give a hooray!