- 7
How to get the right output
Please help
32 Answers
- 4
Please reframe your question and tell where you are getting problem
+ 5
Mohd Sameer check again now its right
https://code.sololearn.com/cuulAaD31oPP/?ref=app
+ 5
#the right answer is
# your code goes here
for i in range(1,31):
if i==30:
print(0.01*(2**i))
+ 3
Accurate answer
+ 2
print(0.01*(2**30)
Single line code You will get answer
+ 2
for i in range(1,31):
if i==30:
print(0.01*(2**i))
#HERE IS THE ANSWER
+ 1
answer is : print(.01*2**30)
+ 1
kote
+ 1
To solve the Python Core Unit 1 challenge you will need to:
1) Comment out the other lines of code you are given by placing a "#" before each line of code.
2) Add this single line of code: print(.01*(2**30))
3) Run
Strategy to Solve:
Step 1: If you don't do step one, your output will not match the information in the expected outcome. Run your code and you will see nothing in the "input" area, a bunch of sentences and the correct answer in the second "your output" area, and expected outcome to just be the amount of money you will have after 30 days if you take the one-penny/cent doubling each day.
Step 2: This step means the one cent/penny doubling every day for 30 days.
Step 3 Running the code, the first time, is necessary to learn you need to do step one to solve this problem (even if everything else is correct).
Hope this helps.
0
Help me out bro
0
Mohd Sameer here us your answer with short code
https://code.sololearn.com/cuulAaD31oPP/?ref=app
0
It's is not right
0
Answer is right but he want
0
Mohd Sameer what's the output format??
0
10737418.24 (note: there is space in beginning) where we are mistaking
0
Wait in my code at last there is also space printed
0
But it's not accepting
0
How can I send screen shot
0
Just post it in your feed and share the link here or post it on dropbox or google drive and share the link here
0
print(0.01*(2**30))