If-else statement error

Hey, @revTeme!

Is this a school assignment?

yes, it is a school assignment.

It looks like your code is correct, if you look at your output:

Water gushes
Water level: 0
No water!
Water level: 0

And the expected output:

Water gushes
No water!

The only difference is that you’re printing the water level.

You might have added that method for debugging, in which case you probably shouldn’t use it when attempting the tests.

Otherwise it’s also possible the tests aren’t quite right.

3 Likes

@MattDESTROYER Thank you so much!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.