Probability Calculator - Free Code Camp (SOLUTION)
I spent a bunch of time trying to solve this problem by myself but nothing was working, after trying a bunch of times I realized what was wrong, I tried to implement Faraday´s Academy solution but it wasn´t working, so I´ve looked at the code on python tutor and figure out what was the mistake and how to fix it, so this video is an explanation of what was wrong and how I fixed it. I highly recommend checking the other solutions out, especially from Faraday Academy, and also researching and trying to solve this yourself, I´ve learned a lot by doing this challenge...
obs: I´ve realized after copying and pasting her code directly from her Replit that it actually is working, the issue was on her video the indentation looks different because the way the space for her code was set up, some function calls are broken down into 2 different lines, so they seem to be written in two different lines when in reality they are supposed to be on the same line, the ones I´ve spotted are the "balls" functions...anyway I´m going to leave my solution because I think it might help someone as well
Hope this helps :)
Programming Predator: https://www.youtube.com/watch?v=99SxnweS3ps
Faraday Academy: https://www.youtube.com/watch?v=5fSTndU5uWo
Landon Schlangen: https://www.youtube.com/watch?v=iIu4ixFlT-w&t=6s
Aarya Pandya: https://www.youtube.com/watch?v=KDRO3E_M3FQ
-
LIVE
Caleb Hammer
45 minutes agoPampered Princess Thinks Poverty Is Easy | Financial Audit
78 watching -
LIVE
LFA TV
4 hours agoKAMALA ENDORSED BY PROJECT 2025? | LIVE FROM AMERICA 9.30.24 11am EST
850 watching -
1:11:00
Graham Allen
3 hours agoHurricane Helene DESTROYED Small Towns! WHERE’S BIDEN?! + Bama ERUPTS As Trump Shows Up To Game!!
29.7K100 -
Matt Kohrs
11 hours agoStock Market Open: The Insane Week Ahead! || The MK Show
23.7K4 -
33:33
BonginoReport
4 hours agoJohn Kerry Declares War on the Constitution (Ep.53) - 09/30/24
39.4K83 -
LIVE
Danny Haiphong
3 hours agoIsrael Launches WAR on Lebanon, K*lls Nasrallah, Iran Next? w/ Jeffrey Sachs & Mohammad Marandi
710 watching -
1:28:31
Game On!
11 hours agoTom Brady Embarrasses Baker Mayfield!
22.4K2 -
2:03:00
AP4Liberty
3 hours agoNetflix Endorses Kamala Harris: Cancellations Spike!
19.9K8 -
1:40:15
Jeff Ahern
2 hours agoMonday Madness With Jeff Ahern (6am Pacific)
15.9K4 -
40:00
Popcorn In Bed
1 day agoHEAT (1995) | FIRST TIME WATCHING | MOVIE REACTION
24.9K3