9/9 How is everyone doing?


#1

Hi,

I've been reading a lot of the topics currently open for section 9/9 and I can't seem to figure out why it's not working for me the way it's working for others.

Maybe I missed something minor?


#2

The output looks correct (except last line). We could do with some raw code for testing purposes. Please post your code, and any error messages you are receiving. Thank you.


#3

    if score % 1 == 0:

is causing the function to return None meaning there is no return. score is a float, not an integer.


#4

Thanks!!

I made the following change and it worked!:
if int(score % 1) == 0:


#5

It shouldn't be necessary to narrow the scope to integers. Floats are what we are working with, so may as well stick with them.