Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
for loop stumbling block
#6
(Sep-11-2019, 07:20 AM)YoungGrassHopper Wrote: Thanks for in interesting info perfringo , now I can lecture about leap years too Cool

This knowledge is 'needed' in assignments because there are several sort of limitations (can't use built-in modules etc). 'Normal' way of doing it would be using built-in modules like calendar etc.

If it's a homework then there are (probably) automated tests which (probably) will use built-in modules which return correct leap years. So code will not pass if leap years are not calculated correctly. Professors also very often try to mislead students by providing test sample which seems general but actually is specific case (as with year 2000 in this example). That's why I called it 'critical thinking'. Been there, done that Smile
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
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,955 Mar-28-2021, 09:21 PM
Last Post: Larz60+
  while loop stumbling block YoungGrassHopper 5 3,472 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