11 Answers
New AnswerI wrote a code but it doesn't execute
11/26/2020 3:42:35 PM
MUKKAMALLA LAVANYA11 Answers
New AnswerShow us your code so that we can help you for exponentiation we use ** for example 2**3 = 2×2×2 2**4 = 2×2×2×2
Try writing int before inputting Only numbers could be exponentiated not strings A= int(input(.....
This is what I did. x = 1.000*0.01 *(2**30) y = 0.01 *(2**30) if x>y: print (x) else: print (y) Hope it helps 😊
This worked for me.. Note : Split lines while inputting A=int(input('enter num1 :')) print(A) B=int(input ('enter num2 :')) print(B) c=A**B print(c)
I just learned this so pow(yourbase, yourexponent, modulus(which is optional)) so pow(2,2) == 4 that might work
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message