Call a funtion from another file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neetuyadav1810
    New Member
    • Jul 2014
    • 1

    Call a funtion from another file

    Hey! I have two files justatry.py and hydr.py I want to call a function named Transform from hydr.py in justatry.py I am using this code:
    import hydr
    hydr.Transform

    but while running it shows except ValueError
    Please tell me how can I fix it.
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    There is no way we can determine the cause of the error because you have not provided any information. Here's an example of a ValueError:
    Code:
    >>> math.acos(5)
    Traceback (most recent call last):
      File "<interactive input>", line 1, in <module>
    ValueError: math domain error
    >>>

    Comment

    Working...