Suppose Now there is a file named main.py, which has many variables. We want to find the average of all the variables by adding all of the variable and dividing them by the number of varibles. If there are less variables, like -
a= 100
b = 200
average = a+b / 2
print(average)
This is how we code if there are less variables. But what to do if there are a thousand variables? We can't write every single variable. So how should we write the code in that case?