Python Forum
Please Help Understand Functions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please Help Understand Functions
#3
Ok, got rid of the duplication. Still getting this error:

C:\Python\python.exe C:/Users/-----/Desktop/Test.py
Type numbers: 5
Error:
Traceback (most recent call last): File "C:/Users/Vadim/Desktop/Test.py", line 13, in <module> main() File "C:/Users/Vadim/Desktop/Test.py", line 10, in main calculate() File "C:/Users/Vadim/Desktop/Test.py", line 6, in calculate a = enterNumbers() + 1 TypeError: unsupported operand type(s) for +: 'NoneType' and 'int' Process finished with exit code 1
Reply


Messages In This Thread
Please Help Understand Functions - by toxicxarrow - Feb-21-2018, 08:23 PM
RE: Please Help Understand Functions - by Larz60+ - Feb-21-2018, 08:47 PM
RE: Please Help Understand Functions - by toxicxarrow - Feb-21-2018, 08:58 PM
RE: Please Help Understand Functions - by Larz60+ - Feb-21-2018, 10:06 PM
RE: Please Help Understand Functions - by nilamo - Feb-21-2018, 10:26 PM

Forum Jump:

User Panel Messages

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