Please help me out with the exponentiation end of module project | Sololearn: Learn to code for FREE!

+3

Please help me out with the exponentiation end of module project

I've written it in different ways, of which I see it correct but it didn't work. a = input() result = a*(2**30) print (result)

1/4/2021 9:19:29 PM

Tumbu Nkeng John

5 Answers

New Answer

+3

num was already set and its value was 1.000.000$ (or 0.01). So you may use it and avoid input() function.

+2

Thanks Stefan it worked, but its really funny why it didn't work.

0

Try this It should work num = 0.01 * (2**30) print(num)

0

res = 0.01*(2**30) print(res)

0

Stefan why you don't use 1000000$??, and why you use 2??, Thanks 😊