Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python: for and if loop
#5
How do you want it resolved? Should func_code only return one func code, or should reg_val_list_binary return multiple values. I don't know because I have no idea what it is you are trying to accomplish. One thing I can say for sure; Your function names are terrible! When you have to add a version number to differentiate functions it is a clear sign that one of more of the functions aren't doing anything useful and the code needs to be reorganized.

I think it may be time to step back and write down what it is you want to do, not how you are going to code it. Maybe you ran into a coding problem and that resulted in some confusion that made you lose focus on what you are trying to accomplish. Or maybe your goals were never clearly stated in the first place. Sometimes I don't know where I'm going to end up when I start a project and have to thrash around a bit to discover what my requirements really are. Either way you will not succeed until you have a clear description of what your program needs to do.
Reply


Messages In This Thread
Python: for and if loop - by salwa17 - Jun-19-2020, 12:40 PM
RE: Python: for and if loop - by deanhystad - Jun-19-2020, 01:07 PM
RE: Python: for and if loop - by Yoriz - Jun-19-2020, 02:32 PM
RE: Python: for and if loop - by salwa17 - Jun-20-2020, 03:15 PM
RE: Python: for and if loop - by deanhystad - Jun-22-2020, 01:17 PM

Forum Jump:

User Panel Messages

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