I'm doing a programming question and I need a bit of help. I have a variable where I type in a number and then that number and all the numbers before it go in a list.
For example: I pick 10 and put it in a variable
And all numbers from 1 - 10 are put in a list
Here is my code:
Top_Num = int(input('Top Number'))
Nums = []
Now lets say I chose 10 for the Top_Num, how do I put 10 numbers into the list? Thanks.