Python Program to Check Leap Year (Hindi) | Python Tutorial

preview_player
Показать описание


WsCube Tech is a leading Web, Mobile App & Digital Marketing company, and institute in India.

We help businesses of all sizes to build their online presence, grow their business, and reach new heights.

All the courses are job-oriented, up-to-date with the latest algorithms and modules, fully practical, and provide you hands-on projects.

📞 For more info about the courses, call us: +91-7878985501, +91-9269698122

✅ CONNECT WITH THE FOUNDER (Mr. Kushagra Bhatia) -

Connect with WsCube Tech on social media for the latest offers, promos, job vacancies, and much more:

--------------------------------------| Thanks |---------------------------
#pythontutorials #pythonprogramming #pythonprograms
Рекомендации по теме
Комментарии
Автор

😎Hey, thanks for watching! We’d love to know your thoughts/doubts here in the comments.

wscubetech
Автор

Mam here is an easy and alternative program to calculate this:

year = int(input("Enter year to check: "))
if (year%4==0) and (year%400==0) :
print("It is a leap year.")
elif (year%4==0) and (year%100!=0):
print("It is a leap year.")
else:
print("It is not a leap year.")

learningcoder
Автор

Here's an easy way to do this
year=int (input("Enter a year "))
temp=year//100
if temp%4==0:
print (year, "is a leap year")
else:
print (year, "is not leap year")

indrajitkumar
Автор

Greatest videos it very helpful for bigners

shikhasolankistartforeverl
Автор

Success is the result of perfection, hard work, learning from failure, loyalty, and persistence ?

GoogleAndroidSmart
Автор

Mam it can be done with simple program than this. There is no need to write such conditions
[n=int(input("enter any year = "))
if n%4==0 :
print (n, " is a leap year")
else:
print(n, " is not a leap year ")]

factstime
Автор

try this:
a=int(input("enter year"))
if(a%4==0 and (a%100!=0 or a%400==0)):
print("its a leap year")
else:
print("noooo")

ALEX_Edts
Автор

Year = int(input("enter a year: ")

If (year % 400 == 0) and (year % 100 == 0):
print (year, "is a leap year")
elif (year % 4 == 0) and (year % 100 != 0):
print ( year, "is a leap year ")
else ( print, "is not a leap year")

subhashchandra
Автор

6:15
No need to use "and (year % 100 == 0)" in line 3 of program code

RishiRajxtrim
Автор

Import calendar
Print(calendar.isleap(2020))

O/p true

Sathvikachava-hnzf
Автор

Year = int(input("Enter the Year about which you want to know wheather it's a leap year or not: "))
if Year%4 == 0:
print("The year give by you is a leap year")
else:
print("The year give by you is not a leap year")

is that true??

AayushSoni-
Автор

Madam faltu me itne saare conditions lagaye. Agar / 4 == 0 karte. To hi condition satisfy ho jata

xyz-ubqo
Автор

Here is an easy way to do this:


Year=int(input("Enter the year"))
if Year%4==0 and Year%100!=0 or Year%400==0:
print("It is a leap year")
else:
print("It is not a leap year")

soumyanandan
Автор

Hello maim mera question ye hai k humare phone mein do tarah ki ip show hoti hai aik to phone ki settings mein aur dosri agar google pe my ip likh k search karein to, to kon c ip pe koi bhi attack perform ho sakta hai, phone ki settings wali ya jo google pe my ip likh k search kartay hein plz reply

stxyfcb
Автор

Even Dr. Angela failed to explain this concept the way you have, in a simple and easy way.

GalaxyCookies
Автор

year = int(input("enter a year:"))

if (year % 4 == 0):
print(year, "is a leap year")
else:
print(year, "is not a leap year")

ashifshaikh
Автор

years=int(input("Enter Last Year till you want to see is that leap year or not:"))
for i in range(1999, years+1):

if i%400==0 and i%100==0:
print("Leap Year :", i)
if i%4==0 and i%100!=0:
print("Leap Year :", i)
# else:
# print("NOt Leap Year :", i)

ihaveitinme
Автор

x = int(input("Enter the year: "))
if x%400==0 or x%4==0:
print(f"The year {x} is a Leapyear")
else:
print(f"The year {x} is not a Leapyear")

bikibharali
Автор

Whats wrong in this method pls anybody explain

Year = int(input('enter a year: ') )
If(year % 4 == 0) :
print(year, "is a leap year) else:
print(year, " is not a leap year)

simpleguy
Автор

its simple if num = int(input("Enter a year: "))
if num % 4 == 0:
print(num, " is a Leap year")
else:
print(num, " is not Leap year")

Hamadkmehsud