Task- Write a function naturalNumbers which takes a positive integer n as input, and returns a list [1, 2, …] consisting of the first n natural numbers.
def naturalNumbers(n): d = n+1 for a in range(1,d): b = [d-a] print(B)/>
I'm supposed to use: a For Statement, List Repetition and/or List Concatenation.
A few pointers in the right direction would be greatly appreciated, thanks.
I'm not sure why the b in "print(" is capitalizing, or adding a forward slash and bracket.