Calculate User Birthday
Write a program that gets the user's age from the input and calculates and prints the user's birthday
Write a program that gets the user's age from the input and calculates and prints the user's birthday
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('age:')) a=1403 b=age-a print('sale tavalode shoma:',b)
from datetime import date age = int(input(f"What's your age?")) today = date.today() current_year=today.year birth_year=current_year-age print(birth_year)
age = int(input("Please Enter your age: "))
print("Miladey=",2025-age)
print("Shamsy=",1404-age)
print("Ghamary=",1446-age)
a=int(input("age: ")) b=int(input("emsal: ")) c=b-a print(c)
from datetime import datetime age = int(input("how old are you?")) current_year = datetime.now().year birth_year = current_year - age print(f"you were born at {birth_year}")
from datetime import datetime as gdt from jdatetime import datetime as jdt age = int(input('Enter your age: ')) print(f'Gregorian birthday: {gdt.today().year - age:2d} - Jalali birthday: {jdt.today().year - age:2d}')
from datetime import datetime # Get User Age from Input age = int(input("لطفاً سن خود را وارد کنید: ")) # Calculate the year of birth current_year = datetime.now().year birth_year = current_year - age # Birthday printing print("سال تولد شما برابر است با:", birth_year)
Submitting answers is currently unavailable.
Write a program that receives a number and prints the figure below according to the number, the Number Example: 3 #######Number Example: 5 #######################
Write a program that receives a number and from that number to 0 countdown is required between each number of 1 second pauses
Write a program where the user can enter the clock, minutes and seconds as the example below and from the time entered, the countdown to zero is Input: 1:22:50 # One hour and twenty minutes and fifty seconds
Write a function that receives a username and if it was a character except the lowercase English letters, FALSE and otherwise TRUE
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.