Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How send the args of my parameter #2

Open
gaetan1903 opened this issue Feb 11, 2022 · 0 comments
Open

How send the args of my parameter #2

gaetan1903 opened this issue Feb 11, 2022 · 0 comments

Comments

@gaetan1903
Copy link
Contributor

'''
 Sometimes my fails function need a parameter
'''
from random import random
def a_sometimes_failing_hello(val: float):
    if random() < val:
      print("Hello!")
    else:
      raise RuntimeError()
@gaetan1903 gaetan1903 changed the title How send the args of my parametre How send the args of my parameter Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant