![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | !Prince |
Hello, I need help with an assignment my teacher gave me. I promise I will find out how to do this on my own, but right now I have little time before it’s due. Below is the prompt.
create 4 functions
#1 takes in 1 param(has to be a positive #), and will print out the value from 0 to that number
#2 take 2 params, the second bigger than the first, print the range between them
#3 receives a list of numbers and prints them out in reverse order
#4 take in one param( both +/-), print out the odd numbers from 0 to that number
You can check the value of the parameters by a comparison operation, e.g.
if foo > 0:
# Do stuff here.
Ertain | 2020-12-18 17:53