+ 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)

4th Jan 2021, 9:19 PM
Tumbu Nkeng John
Tumbu Nkeng John - avatar
5 Answers
+ 4
num was already set and its value was 1.000.000$ (or 0.01). So you may use it and avoid input() function.
4th Jan 2021, 9:32 PM
Stefan
Stefan - avatar
+ 2
Thanks Stefan it worked, but its really funny why it didn't work.
4th Jan 2021, 9:27 PM
Tumbu Nkeng John
Tumbu Nkeng John - avatar
0
Try this It should work num = 0.01 * (2**30) print(num)
4th Jan 2021, 9:24 PM
Stefan
Stefan - avatar
0
res = 0.01*(2**30) print(res)
21st May 2021, 10:51 AM
Kanad Patil
Kanad Patil - avatar
0
Stefan why you don't use 1000000$??, and why you use 2??, Thanks 😊
4th Oct 2021, 3:50 AM
Sarmad Saad
Sarmad Saad - avatar