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>
2 + 3 + 4 = 9 so the value of result is also 9
Answer:
True
Explanation:
Look at the top right of your computer while having a chrome tab open. You will see a line, a box, and a x. Hover over each and you can see the names.
The correct answer is: <span>1/7 of a calendar year
</span>A Web year has been said to be the length of time it takes for Internet technology to evolve as much as technology in another environment might evolve in a calendar year. The term was coined at a time when the Internet and Web technology and culture were progressing at a phenomenal rate.
<span>The term is sometimes attributed to Lou Gerstner, then head of IBM. According to Larry Kunz, then the editor of IBM's Network Connection, the idea of a Web year was introduced by an unnamed female colleague in 1996. </span>
<span>In a 1996 interview in the WWW Journal, Tim Berners-Lee, chief inventor of the Web technologies, said: "What is a Web year now, about three months? And when people can browse around, discover new things, and download them fast, when we all have agents - then Web years could slip by before human beings can notice." When the interviewer suggested that such a pace would "take a physical toll" on people who work on the Web, Berners-Lee agreed that was true, but added that they would also "be able to live for three or four hundred Web years, which will be very exciting."</span>