"Sound Heartbeat"

Soundheartbeat.com - ranking and value

To track my progess daily , I started sharing everything I do or add in my learning in my blog post. Thanks to my mentor Dr. Angela

After getting the logic I stated using my brain to write the code ,and guess what I was successful in my go.

Here is the code I have write ,

# 🚨 Don't change the code below πŸ‘‡
year = int(input("Which year do you want to check? "))
# 🚨 Don't change the code above πŸ‘†

#Write your code below this line πŸ‘‡
if year%4!=0:
print(" It is not a Leap year")
elif year%100!=0:
print(" It's a Leap year")
elif year%400==0:
print(" This is a Leap Year.")
else:
print("This is not a Leap year")

Try coding. It’s love 🀩


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

error: Content is protected !!
en_GBEnglish (UK)