With python

For fast calculations I use Python, I just like it better than a calculator.

2**24
16777216

Got to go look at how some people did it Unity, as I am a little out of practice. ^^

Hi there,

Python is indeed very fast! There are some examples in the forum about how people did this in Unity but if you have any questions about this throughout the course, please don’t hesitate to ask!

Kind regards,
Lisa

Hi there, I also used python to do a quick calculation. This is the code I used:

Function

def exp( base, exponent):

return base**exponent

Main Program

b = int(input())

e = int(input())

test = exp(b,e)

print(test)

My Output was: 16777216 as well.

Privacy & Terms