I'm a beginner of python and I have a question
I defined a function named testfunc like below
def testfunc(num) :
result = num ** 2
return result
This is just for test so I made very simple function
And I want to declare many variables.
x1 = testfunc(1)
x2 = testfunc(2)
x3 = testfunc(3)
like this..
If there are a little variables, I can write all of them.
But how about in case of many variables? (about 1000 or 100000)
Is there any good way to declare many variables using loop?