Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Looping a Program
#8
+1 to not requiring elses to ifs. I don't feel strongly enough about it to make you feel bad or call you names, but I do feel that I should throw in my intuition that it's unnecessary noise, and say that you will probably agree after a few months of Python. While I'm sympathetic to wanting code to be as legible for beginners as experienced folks, I feel like you learn to understand the code fairly fast and it's not worth bogging everyone down. Do with this intuition what you will.

I don't expect everyone to know about this, but Ed Shaw is not an authority on Python. His tutorial is popular and might not be entirely bad, but there are pretty serious criticisms of him that mean I would recommend learning Python from a shell before using his tutorial. Unfortunately I can't find it, but I know there was a good thread that went into detail. Anyone seeing this should feel free to link to it.

(Oct-08-2018, 02:38 PM)stullis Wrote: delivered without tact
+1. This is a learning forum, and I learned (here) this lesson at the cost (I'm sure) of a lot of people learning better.

Overall, I find the general practices for Python to be quite readable, and I believe they're good. To do any better I would suggest functional programming (which I don't find easy in Python), but I'm probably in the minority there :)
Reply


Messages In This Thread
[split] Looping a Program - by volcano63 - Oct-05-2018, 09:26 PM
RE: [split] Looping a Program - by micseydel - Oct-09-2018, 12:26 AM
RE: Looping a Program - by perfringo - Oct-06-2018, 05:12 AM
RE: Looping a Program - by volcano63 - Oct-06-2018, 08:31 AM
RE: Looping a Program - by perfringo - Oct-07-2018, 09:00 AM
RE: Looping a Program - by volcano63 - Oct-07-2018, 09:26 AM
RE: Looping a Program - by perfringo - Oct-08-2018, 11:31 AM
RE: Looping a Program - by stullis - Oct-08-2018, 02:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Results of this program in an excel file eisamabodian 1 1,589 Feb-11-2022, 03:18 PM
Last Post: snippsat
  Need help looping this program JakobeTheKid 1 2,117 May-19-2019, 05:30 AM
Last Post: SheeppOSU
  Looping a Program DavidRobinsons 4 3,555 Oct-09-2018, 12:14 AM
Last Post: micseydel
  [split] Coin Flip Program Crackity 5 4,845 Sep-25-2017, 03:48 AM
Last Post: Crackity

Forum Jump:

User Panel Messages

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