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("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()
a = int(input("age: ")) if a < 20: print(" error") else: print("welcome")
age=int(input("how old are you?")) if age<20: print("throw/rised") else: print( "Welcome :)")
Submitting answers is currently unavailable.
Write a program that receives the user's name, age and city and print on output
Write a program that receives a rectangular length and width from the input and prints its area in the output
Write a program that receives users' student names and number and stores in a file called Students.txt. Also, after each storage, display the entire information of this file at the output.
Write the absentee presentation program: The teacher enters the students' names in the classroom every day in a file with the name of that day in the name of that day and in the TXT format, the teacher can enter the date by entering the date ...
Write a program that receives a text from the input and, like the example below, prints from the first to the first point Enter: My name is amirhossein. I live in tehran. My name is amirhossein
Write a program that receives students' scores and names and prints from the highest to the lowest score, respectively
Write a function that receives the user's postcode as a parameter and checks whether the postcode is correct? Must be 15 digits?
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.