Nov-23-2017, 11:16 PM
The return statement is not 'returning' s, because within the function, 's' is 'score' so that is what you would want to return. If you want line 22 to work, you need to modify line 21 to something like
ques = question(d, s)
then change line 22 to print(ques, "Score")
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
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition