Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
for loop stumbling block
#5
(Sep-11-2019, 05:59 AM)perfringo Wrote: Now is the right time to apply some critical thinking. This code ain’t determining leap years. It determines years divisible by four. Leap year is something different:

Quote:Every year that is exactly divisible by four is a leap year, except for years that are exactly divisible by 100, but these centurial years are leap years if they are exactly divisible by 400. For example, the years 1700, 1800, and 1900 are not leap years, but the years 1600 and 2000 are.

Thanks for in interesting info perfringo , now I can lecture about leap years too Cool
Reply


Messages In This Thread
for loop stumbling block - by YoungGrassHopper - Sep-10-2019, 08:38 PM
RE: for loop stumbling block - by metulburr - Sep-10-2019, 09:06 PM
RE: for loop stumbling block - by YoungGrassHopper - Sep-10-2019, 09:15 PM
RE: for loop stumbling block - by perfringo - Sep-11-2019, 05:59 AM
RE: for loop stumbling block - by YoungGrassHopper - Sep-11-2019, 07:20 AM
RE: for loop stumbling block - by perfringo - Sep-11-2019, 08:08 AM
RE: for loop stumbling block - by YoungGrassHopper - Sep-11-2019, 01:29 PM
RE: for loop stumbling block - by perfringo - Sep-11-2019, 02:45 PM
RE: for loop stumbling block - by YoungGrassHopper - Sep-11-2019, 03:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Stop/continue While loop block Moris526 68 26,216 Mar-28-2021, 09:21 PM
Last Post: Larz60+
  while loop stumbling block YoungGrassHopper 5 3,383 Sep-09-2019, 08:36 PM
Last Post: YoungGrassHopper

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020