Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grades Code":
#5
(Nov-22-2023, 08:09 AM)buran Wrote: well, if you have known, finite number of elements, you better use for loop (note, you don't validate the input, i.e. it is not take input until 5 valid inputs)

Yes, I know a for: loop would be better. I was just tying to introduce one concept at a time, rather than add the range() function into the mix at this stage. Also I know that any input should be validated, but again, for the same reason, I did not introduce that at this stage.
buran likes this post
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply


Messages In This Thread
Grades Code": - by Anthony - Nov-22-2023, 03:58 AM
RE: Grades Code": - by rob101 - Nov-22-2023, 08:05 AM
RE: Grades Code": - by buran - Nov-22-2023, 08:07 AM
RE: Grades Code": - by buran - Nov-22-2023, 08:09 AM
RE: Grades Code": - by rob101 - Nov-22-2023, 08:29 AM
RE: Grades Code": - by perfringo - Nov-22-2023, 12:30 PM
RE: Grades Code": - by rob101 - Nov-22-2023, 01:47 PM
RE: Grades Code": - by Anthony - Nov-22-2023, 09:53 PM
RE: Grades Code": - by rob101 - Nov-22-2023, 10:30 PM
RE: Grades Code": - by Anthony - Nov-23-2023, 02:51 AM
RE: Grades Code": - by Anthony - Nov-23-2023, 02:54 AM
RE: Grades Code": - by Anthony - Nov-23-2023, 09:44 PM
RE: Grades Code": - by buran - Nov-23-2023, 03:59 AM
RE: Grades Code": - by rob101 - Nov-23-2023, 05:37 AM
RE: Grades Code": - by buran - Nov-24-2023, 07:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calculate median for school grades per subject siki 1 1,983 May-10-2021, 11:41 AM
Last Post: jefsummers
  python program that calculat grades of students biligorm 3 2,316 Apr-04-2020, 10:11 AM
Last Post: buran

Forum Jump:

User Panel Messages

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