ProbabilityEventAnalysis_code review | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

ProbabilityEventAnalysis_code review

please review my first program in Python for probability event analysis simulation model .. please comment and suggest bet way to do it.. Trying to learn python for statistical use. https://code.sololearn.com/cb41Nd5F9ej8/?ref=app

1st Mar 2018, 7:37 AM
Rohan Alhat
Rohan Alhat - avatar
2 ответов
0
For your first Python program, actually excellent :-) Constructive Feedback: 1) Better variable names (they should be more meaningful) 2) Put comments in the code (comments should read as English, and not just describe the code) 3) Split up one long bit of code into functions. This allows unit testing, and makes the code more readable 4) Spellcheck, e.g. "Inersection of two Event OPION" Impressive statistics!
9th Apr 2018, 10:40 PM
Emma
0
thank you for your valuable feedback :)
24th Apr 2018, 7:31 AM
Rohan Alhat
Rohan Alhat - avatar