scripts/check.py is not usable as a teaching example.
def func1():
# Why: Placeholder function for structure
# utka
# utkasfjh <- leftover keyboard-mashing
# jlfdjlj
# jrlfjl
print(func1) # prints "<function func1 at 0x...>", not a call
Two problems: four lines of junk comments, and print(func1) prints the function object — which is exactly the mistake beginners make and then get confused by. A file named check.py also tells nobody what it demonstrates.
What to do
Good first issue.
scripts/check.pyis not usable as a teaching example.Two problems: four lines of junk comments, and
print(func1)prints the function object — which is exactly the mistake beginners make and then get confused by. A file namedcheck.pyalso tells nobody what it demonstrates.What to do
print(func1)(the object) withprint(func1())(the result) — turn the bug into the lesson.functions_and_input_demo.py, and update any reference to it.Good first issue.