Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lists topic python
#7
So, is everything between def func1(): and the call to the function supposed to be indented so as to define the function?
Also, for your class, don't you need to indent "pass"?
Fixing the indentation your code works.
Reply


Messages In This Thread
Lists topic python - by Tjay - Oct-14-2019, 07:13 PM
RE: Lists topic python - by jefsummers - Oct-14-2019, 07:20 PM
RE: Lists topic python - by Larz60+ - Oct-14-2019, 07:21 PM
RE: Lists topic python - by Tjay - Oct-14-2019, 07:31 PM
RE: Lists topic python - by Larz60+ - Oct-14-2019, 08:06 PM
RE: Lists topic python - by Tjay - Oct-14-2019, 08:17 PM
RE: Lists topic python - by jefsummers - Oct-15-2019, 01:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Program "Topic" 150 lines of code. sean1 3 2,485 Dec-25-2021, 05:49 AM
Last Post: ndc85430

Forum Jump:

User Panel Messages

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