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
#6
Should be

if __name__ == "__main__":
    main()
Also, you don't need the "self" in your function
def main()
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
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 sparkz_alot - May-10-2017, 09:11 PM

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