User's age check
Write a program that receives the user's age from the input and checks that if the user was younger than 1, it would be a throw/raise error, otherwise print a welcome message
Write a program that receives the user's age from the input and checks that if the user was younger than 1, it would be a throw/raise error, otherwise print a welcome message
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
age = int(input("Enter your agg :")) years_ = int(input("Enter your birth year: :")) y = 2024 - years_ if age == y : if age > 20 : print("Welcome") else: print("throw/raise") else: print("Your age does not match your birth year")
age = int(input("age: "))
if age < 20:
raise Exception('sen shoma kam ast.')
else:
print('wellcome.')
age = int(input("age:"))
if age > 19:
print("خوش امدید")
else:
print("throw/raise")
print("بچه برو رد کارت")
Great
age = int(input("enter your age number:")) if age < 20: print("throw/raise") else: print("wellcom to in world")
i=int(input('age:')) if i<20: raise Exception(' You are too young.') else: print('wellcome.')
age = int(input("how old are you;")) s = ['you are welcome' if age >20 else "throw/raise" ] print(s)
name = input("Enter your name: ") def age(): Age = int(input("How old are you: ")) if Age>13: print("welcom", name) else: print ("Opps, you are younger than virtual age") age()
Submitting answers is currently unavailable.
Write a program that can obtain the average infinite number of numbers: First, the program must receive the user's numbers (until the user does not enter the number 0, the numbers must continue ...
Write a program that receives a number from the input and increases the number 2 and prints in the output. This trend continues until the number 0 is not arrived
Write a function that receives a word and changes each letter to its next letter in the alphabet. Then returned the result. Indeed: "A" turns into "B" "" B "becomes" C "" C "becomes" D "and ........
Write a program that receives a solar date from the input (in the format of yyyy/mm/dd). Then convert the date to AD and print in the output
Write a program where the user can enter the number of one -digit number and then all the numbers that can print the construction with the entered digits for example: Input: 1 input: 2 input: End 12 21 11 22
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.