def try_again():
return random() > 0.99
def main():
success = False
while success is not True:
success = try_again()
if __name__ == '__main__':
main()Highlights
- Arctic Code Vault Contributor
Create your own GitHub profile
Sign up for your own profile on GitHub, the best place to host code, manage projects, and build software alongside 50 million developers.
Sign up
Pinned
1,045 contributions in the last year
Activity overview
Contributed to
huangsam/ultimate-python,
huangsam/huangsam.github.io,
huangsam/chowist
and 5 other
repositories
Contribution activity
September 2020
- huangsam/Python Python
Created a pull request in huangsam/ultimate-python that received 1 comment
Remove print statements
After receiving some feedback, it seems like the print statement can be confused with the assert statements. Instead of mixing the two together, we…
+166
−212
•
1
comment