Python Forum
Code doesn't seem to write anything
Thread Rating:
  • 3 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code doesn't seem to write anything
#5
I appreciate the comments that I am not calling main so nothing is running.  

I need help understand that because the print to the console in main is working as expected. How is it possible to not call main and yet have main running? I do not understand the logic of that.

From my limited python knowledge, I thought the last line called main when the script loaded. If that is not how it is supposed to be done, please demonstrate the correct way.

Thanks
Reply


Messages In This Thread
Code doesn't seem to write anything - by PickyBiker - May-10-2017, 06:24 PM
RE: Code doesn't seem to write anything - by nilamo - May-10-2017, 07:06 PM
RE: Code doesn't seem to write anything - by PickyBiker - May-10-2017, 09:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UART write binary code trix 3 517 Apr-28-2024, 04:57 PM
Last Post: deanhystad
  write code that resides in parent directory franklin97355 3 644 Apr-14-2024, 02:03 AM
Last Post: franklin97355
  Last record in file doesn't write to newline gonksoup 3 607 Jan-22-2024, 12:56 PM
Last Post: deanhystad
  needing some help to write some code for a game calculator rymdaksel 1 583 Jan-02-2024, 09:56 AM
Last Post: deanhystad
  Code works but doesn't give the right results colin_dent 2 850 Jun-22-2023, 06:04 PM
Last Post: jefsummers
  Why doesn't this code work? What is wrong with path? Melcu54 7 2,095 Jan-29-2023, 06:24 PM
Last Post: Melcu54
  color code doesn't work harryvl 1 1,039 Dec-29-2022, 08:59 PM
Last Post: deanhystad
  UART Serial Read & Write to MP3 Player Doesn't Work bill_z 15 6,284 Jul-17-2021, 04:19 PM
Last Post: bill_z
  My code doesn't work, can someone help me? aldasrasickas 5 2,962 Dec-21-2020, 02:26 PM
Last Post: aldasrasickas
  How to write a code with İF function? Aycaaxx 1 1,955 Nov-03-2020, 05:46 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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