0

1st python project

I am on the first part of the python course and there is this problem to solve. I really don't know what is wrong with my code print ("00.1*(2**30)") What is wrong ? Thanks for helping

23rd May 2021, 5:59 PM
Joël Henard
Joël Henard - avatar
11 ответов
+ 2
Thanks a lot all of you I 've seen my error
23rd May 2021, 6:26 PM
Joël Henard
Joël Henard - avatar
+ 1
Joël Henard Don't put inside double quotes. That would be string. Do this print(0.01 * (2**30))
23rd May 2021, 6:02 PM
A͢J
A͢J - avatar
+ 1
The question does not ask you to use 00.1 Please look carefully at the number that you should use. Try to write it down on a paper and read it.
23rd May 2021, 6:23 PM
Gordon
Gordon - avatar
+ 1
You are changing cents to dollars so use .01 not .1
23rd May 2021, 7:33 PM
David Ashton
David Ashton - avatar
+ 1
Remove "" Print (00.1 * (2 ** 30))
25th May 2021, 3:29 PM
AFSHIN HASANVAND
AFSHIN HASANVAND - avatar
0
Ok thx but it still says no input and test failed. But my output is the right one
23rd May 2021, 6:07 PM
Joël Henard
Joël Henard - avatar
0
Joël Henard Just copy that logic shared by me and paste there in project and submit the code. It will work.
23rd May 2021, 6:16 PM
A͢J
A͢J - avatar
0
Yeah thanks. Seems it's the space after 00.1 . Do you know why ?
23rd May 2021, 6:20 PM
Joël Henard
Joël Henard - avatar
0
Joël Henard Doens't matter if you put space between operator (+ or - or * or /) it's just for readability of code.
23rd May 2021, 6:25 PM
A͢J
A͢J - avatar
0
2 asterix on the second multiplication
9th May 2023, 10:56 AM
Taylor Steele