On 02/10/15 17:41, Jared Johnson via Tutor wrote:
"A pentagonal number is defined as
n(3n - 1)/2 for n = 1,2 etc.
Write a function with the following header that returns a pentagonal number:
def getPentagonalNumber(n):
It's asking you to write a function that returns the
result of the equat
I've been stuck on this for a while now and was wondering if you could help.
The question is:
"A pentagonal number is defined as n(3n - 1)/2 for n = 1,2 etc. So, the first
few numbers are 1, 5, 12, 22 etc. Write a function with the following header
that returns a pentagonal number:
def getPenta