0

Having trouble with a lesson practice

I am currently doing python for beginners. I’ve run into a problem in the lesson practice of lesson 23. The goal is to calculate what years are leap years by using whether or not the year is evenly divisible by 4, 100, or 400 using boolians. Anyone have any tips or guidance they can give me?

16th Jun 2021, 4:28 PM
DirtTasteBad
DirtTasteBad - avatar
3 Respuestas
+ 2
Hi! You can show us your code attempt? Thx!
16th Jun 2021, 4:31 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
I hope you learned conditional statements.. check the condition using if else block print(year%100) print(year%100!=0) this is how you can create boolean expressions
16th Jun 2021, 4:34 PM
Ratnapal Shende
Ratnapal Shende - avatar
0
Ahhh, thanks, I’ll try that
16th Jun 2021, 4:40 PM
DirtTasteBad
DirtTasteBad - avatar