- 7

How to get the right output

21st Jul 2020, 5:59 AM
Mohd Sameer
- 4
21st Jul 2020, 6:12 AM
AKSHAY🇮🇳
21st Jul 2020, 7:32 AM
AKSHAY🇮🇳
+ 5
#the right answer is # your code goes here for i in range(1,31): if i==30: print(0.01*(2**i))
20th Apr 2021, 5:59 AM
Makane Santosh
+ 3
21st Jul 2020, 7:05 AM
Mohd Sameer
+ 2
print(0.01*(2**30) Single line code You will get answer
10th Nov 2020, 5:23 PM
Vishal Srivastava
+ 2
for i in range(1,31): if i==30: print(0.01*(2**i)) #HERE IS THE ANSWER
24th Jan 2021, 8:43 PM
+ 1
5th Jan 2021, 12:30 AM
Neupane Dev
+ 1
kote
21st Apr 2021, 7:49 AM
Haziq Afiq
+ 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.
27th May 2021, 7:37 PM
EO4Wellness
0
Help me out bro
21st Jul 2020, 6:24 AM
Mohd Sameer
21st Jul 2020, 6:59 AM
AKSHAY🇮🇳
0
It's is not right
21st Jul 2020, 7:04 AM
Mohd Sameer
0
Answer is right but he want
21st Jul 2020, 7:04 AM
Mohd Sameer
0
Mohd Sameer what's the output format??
21st Jul 2020, 7:14 AM
AKSHAY🇮🇳
0
10737418.24 (note: there is space in beginning) where we are mistaking
21st Jul 2020, 7:18 AM
Mohd Sameer
0
Wait in my code at last there is also space printed
21st Jul 2020, 7:31 AM
AKSHAY🇮🇳
0
But it's not accepting
21st Jul 2020, 7:31 AM
Mohd Sameer
0
How can I send screen shot
21st Jul 2020, 7:34 AM
Mohd Sameer
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
21st Jul 2020, 8:21 AM
AKSHAY🇮🇳
0
print(0.01*(2**30))
3rd Jan 2021, 5:21 AM
hassan gulrez