Nov-05-2022, 07:19 AM
(This post was last modified: Nov-05-2022, 08:02 AM by Yoriz.
Edit Reason: Added code tags
)
Hi,
Sorry I am quite new in python, I have a question and i was wondering if anyone can help me?
question below:
Create a function called Q9 that takes an integer argument and uses a loop to print each number in the range of the argument. For example: 5 would print: 0 1 2 3 4
my code is below:
Sorry I am quite new in python, I have a question and i was wondering if anyone can help me?
question below:
Create a function called Q9 that takes an integer argument and uses a loop to print each number in the range of the argument. For example: 5 would print: 0 1 2 3 4
my code is below:
def Q9(): for i in range(9): print(i) Q9()which is wrong, they wanted a answer with Q9(9), i am confuse where I can input this function.