Jan-05-2019, 11:41 PM
Please use python and output tags when posting code and results. I put them in for you this time. Here are instructions for doing it yourself next time. You've been asked to do this before, and if you don't start doing it yourself, you will start getting warnings.
The function is kind of screwy, but it is returning a value. The screwy part is that you are requiring a number be passed as a parameter, but then you are asking for it with input and overriding the parameter.
Note that you need to call the function for it to do anything. As in
The function is kind of screwy, but it is returning a value. The screwy part is that you are requiring a number be passed as a parameter, but then you are asking for it with input and overriding the parameter.
Note that you need to call the function for it to do anything. As in
is_odd(3)
.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures