Answer:
def doMyMath(n):
if n == 1:
return n
else:
return n*doMyMath(n-1)
Explanation:
This line defines the function
def doMyMath(n):
This line checks if n is 1. If yes, it returns n (1)
if n == 1:
return n
If otherwise, it calculates the fibonacci recursively
else:
return n*doMyMath(n-1)
To call the function from main, you can use:
print(doMyMath(5))
or
num = int(input("Number: "))
--- This gets the number from user
print("Result: ",doMyMath(num)) --- This calculates the factorial
<em>This question is answered in Python</em>
The Option D , Table Tools Insert
There might be insufficient storage space so your computer usually takes a longer time to load.The bigger your file, the longer it takes to load. So the solution is to clear up your storage space
A management information system is a computer system consisting of hardware and software that serves as the backbone of an organization's operations
Answer:
1. Speaking or texting on the cell phone while driving.
= It cause an accident.
2. Using technology for bullying others.
Hope this answer will help you.