0

Why is this code not working?

print(0.01(2**5))

22nd Oct 2021, 5:22 PM
Ayesha Ahmed
Ayesha Ahmed - avatar
6 Respuestas
+ 6
Because you missed an asterisk for multiplication "*" in the statement. It should be this way print(0.01*(2**5))
22nd Oct 2021, 5:29 PM
Edwin
Edwin - avatar
+ 1
I Already did that one
23rd Oct 2021, 7:28 AM
Ayesha Ahmed
Ayesha Ahmed - avatar
+ 1
Nothing
23rd Oct 2021, 7:35 AM
Ayesha Ahmed
Ayesha Ahmed - avatar
0
add a evaluation sign before the bracket example print(0.01*(2**5))
22nd Oct 2021, 6:11 PM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar
0
Ayesha Ahmed so what's the problem now
23rd Oct 2021, 7:34 AM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar
0
num = float(0.01) tell = 2**5 temp = num * tell print(temp) You didn't define your code and phyton won't understand. Hence the error message you got
24th Oct 2021, 1:51 AM
Umar Akorede
Umar Akorede - avatar