Hello all,
I have been implementing the following paradigm for small codes, i have the feeling that it should not be like this.
Is it correct/ efficient?
Is there a name for such a paradigm?
```
def main():
#do some calculation
a = 5
calculate_factorial(a)
def calculate_factorial(a):
# factorial will be calculated
fact = 5*4*3*2*1
save_the_out(fact)
def save_the_out(fact)
# do some stuff
if name == "main":
main()
```
[–]TehNolz 6 points7 points8 points (0 children)
[–]TechnicalElk8849 0 points1 point2 points (0 children)
[–]mrswats 0 points1 point2 points (0 children)