Hello!
Similar to the keyboard character keys F and J, the number 5 on the numeric keypad has a bump on it.
This is to also help position your fingers on the keypad when typing numbers.
Hope this helps!
Answer:
Remove the doc using the trash button on it, bit if that doesn't work, just backspace the whole thing (an easier way to backspace it is to highlight everything you typed and hit backspace once).
Pretty sure we need a picture
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>