Premium Only Content

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
-
3:56:47
Shield_PR_Gaming
4 hours ago10/18/25 | WARNING!!! 18+ Battlefield 6 Dev Dogtags?
10.2K1 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
119 watching -
LIVE
SilverFox
16 hours ago🔴LIVE - ARC RAIDERS SERVER SLAM TEST! DAY 2!
107 watching -
2:03:11
LFA TV
18 hours agoTHE RUMBLE RUNDOWN LIVE @9AM EST
125K14 -
LIVE
MrR4ger
4 hours agoWERE NOT GAY, WE JUST PLAY ARC RAIDERS W/ TONYGAMING AND AKAGUMO
26 watching -
3:25:10
Retro Rewind Pod
14 hours ago $0.04 earned📺🌄 SATURCADE ADVENTURES is back! Saturday Morning Cartoon Feels and Gaming Fun
2.74K -
43:57
Daniel Davis Deep Dive
5 hours agoDeep Dive Intel Briefing /Lt Col Daniel Davis
14.5K6 -
LIVE
blackfox87
6 hours ago🟢 SUBATHON DAY 16 | Premium Creator | #DisabledVeteran
98 watching -
1:10:13
Wendy Bell Radio
9 hours agoPet Talk With The Pet Doc
26.9K20 -
1:11:37
Mike Rowe
8 days agoDoes China Control The NBA? | Enes Kanter Freedom #453 | The Way I Heard It
50.1K67