just to comment on something that looks like misconception.
1. Functions by defualt (i.e. if they don't return explicitly) will return None
2.
3.
return()
on line 38 is redundant.1. Functions by defualt (i.e. if they don't return explicitly) will return None
2.
return
is a statment, not a function (i.e. it looks like you think yon need to call it)3.
return()
is just returning empty tuple. you don't care about returned value anyway.def spam(): pass def eggs(): return def foo(): return() print(spam()) print(eggs()) print(foo()) print(type(foo()))
Output:None
None
()
<class 'tuple'>
I would suggest that you post the code in code review section if you want a feedback.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs