Over 10 Million Study Resources Now at Your Fingertips

Download as :
Rating : ⭐⭐⭐⭐⭐
Price : $10.99
Pages: 3
Words: 460

Birth Year Leap Check Assignment Answers Needed

Your Question:

[Birth Leap Year] Question 1

05 points

Enter your birth day: [USER INPUT]

Hello, the DOB you entered is MONTH-DAY-YEAR and you are NOT/BORN in a leap year.

Please enter the month: 9

Please enter the day: 1

Step By Step Answers with Explanation

birth_year = int(input("Enter your birth year: "))

birth_month = int(input("Enter your birth month: "))

        return True


# Step 4: Print the result

print(f"Hello, the DOB you entered is {formatted_date} and you are {leap_year_message}.")

4. We determine whether the entered birth year is a leap year using the `is_leap_year()` function and store the appropriate message in the `leap_year_message` variable.

5. Finally, we print the formatted message that includes the date and whether the user was born in a leap year or not.

How It Works
Login account
Login Your Account
Add to cart
Add to Cart
Make payment
Document download
Download File
PageId: ELI1660C46
Uploaded by :
Page 1 Preview
step by step answers with explanation
Sell Your Old Documents & Earn Wallet Balance