Skip to content
Sign UpLog In
Profile icon

Clare G

@ClareG
Repls
Community
ClareG
ClareG
published a Repl
8 months ago
31
leap year
leap yearWant to join the course? Start your journey here: https://100daysofpython.dev/
hcsks
hcsks
1900 isn't a leap year 2100 isn't a leap year Your code is wrong. It will only check if (year%4 ==0): or else: because elif(year%100 ==0): and elif(year%400 ==0): can be divided by 4, too. Correct would be if ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0): print("Leap year") else: print("No leap year")10 hours ago
KingstonJones2
KingstonJones2
2778278278817239871298371983798273`79872130630836456747126478817612e61`8762417672467126814676287612786827720417621114028716`76216721`87624876`180762440bx7xxxx7271`122746`064271617672167`62746126124178247`8847114872718`67214687621487612`8787248721687214674216746278`6721871`89`992781782482276276```677`8766666728`128742676426124762147861241721844444444444444444444444444444`8888888888888888888888888``````````1111111111112222222222222222222222222222222222222222222221111188888888888888888888888888888888888888888999999999999999999999999999982287687163276127362713671111122223456789000000000000987654321111111223456789000000000987654322111111111111111222223456789000000099888777776666665555544322211112345678900000098765432111111qqqwertyuiopppppppppllkjhgfdsaaaaaazzxxcvbnmmmmmmmmmmmmmmmmmnnbvcxzzaaaaaaaaasssdfghjkllllllllllllllllpppoiuytrewqqqqqqqq1111234566667890000000000000000000ool, mvvvbndnchdbncjxxhnsedmxjhbsn1234567890000009876543332112345676543234567898879798787987878798798789789787978988765432134567890000987654321234567888887654321111111234567898765432111112345678900000987654321111112q3w45678900987654321```12345670119827364555556473829100928736455 this is a leap year huhhhhhh?9 hours ago