write a python program that asks a user for their name, age and password. if their age is less than 13, print a warning message that their data cannot be saved and exit the program. if they are 13 , ask for a password containing at least 8 digits. validate that their password contains 8 digits and ask them to try again until they input a password of 8 or more characters. once they pass all of the requirements, output their name, age, and password.

Respuesta :

This software is supposed to be a type of data validation, according to the theory.

Write a python program that asks a user for their name, age and password.

name = input("Please enter your name: ")

age = int(input("Please enter your age: "))

if age < 13:

   print("Sorry, your data cannot be saved. Please try again when you are 13 or older.")

   exit()

while True:

   password = input("Please enter a password of 8 or more characters: ")

   if len(password) >= 8:

       break

   else:

       print("Password does not meet requirements. Please try again.")

print("Name: ", name)

print("Age: ", age)

print("Password: ", password)

print("Welcome to the program!")

name = input("Please enter your name: ")

age = int(input("Please enter your age: "))

if age < 13:

 print("Your data cannot be saved due to age restrictions. Goodbye!")

 exit()

 

else:

 password = input("Please enter a password with 8 or more characters: ")

 

 while len(password) < 8:

   print("Password must be 8 or more characters. Please try again.")

   password = input("Please enter a password with 8 or more characters: ")

   

print("Your name is " + name + ", your age is " + str(age) + ", and your password is " + password + ".")

print("Thank you for entering your information!")

To learn more about form of data validation refer to:

https://brainly.com/question/29746514

#SPJ4