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?
3 Respuestas
+ 2
Hi! You can show us your code attempt? Thx!
+ 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
0
Ahhh, thanks, I’ll try that