function to return a list of numbers from 0 to argument
Create a function generateNumbers(num) that takes in a positive number as argument and returns a list of number from 0 to that number inclusive. Note: The function range(5) will return a list of number [0, 1, 2, 3, 4].
for x in range(num):
lis = 
y = x + 1
but it return the following;
previous attempts returned some weird results...
anyway, can you please advise me on this, or give me hints so i can advance my knowledge? would be much appreciated.
1 Year Ago
Related Article:function to convert list to numbers help
is a Python discussion thread by jonjacob_33_0 that has 4 replies, was last updated 1 year ago and has been tagged with the keywords: functions, integers, list, python.