Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
you obviously had a goal here that was much larger than the requirements. I'm no rust expert but I have no clue what the heck this does. My guess is that you wanted to come up with a way to solve this without writing out "Yes" or "No" and instead used the hash values for them but once again, I have no clue.
lol this one made me laugh a bit thanks for that
public static void Main(string[] args)
{
Activity workflow1 = new Workflow1();
WorkflowInvoker.Invoke(workflow1);
I would have never thought of this. I like it and will deffinately be using it moving forward :)
Please document the error you see properly before raising an issue. You're not helping anybody with that.
Anyways,
ValueError: math domain error
should be very indicative of what's the problem. So it's your code's issue.I have the same error with Python's math module. Tried on Python 2 and Python3, error remains.
Can you screenshot the error? I'm interested why you are getting an error.
It might because you are using
math.sqrt(n)
but n can be negative. √-1 = i. i is a complex number. You cannot square root a negative number - otherwise it ends up being a complex number (imaginary). You must check if n >= 0I had the same issue. Not sure why some encounter it while others don't
Nothing wrong with that. But
lambda
usually makes the readability worse; and list comprehension is usually preferred overmap
(which is not so "pythonic").I've tried using both of them with the same error
Did you use Python2 or Python3? There were some problems reported with Python3, IIRC.
There appears to be an error with the Python Math module, I am unable to use the sqrt module
Anyone have any idea's on whether to use this or a map function instead? The code is roughly the same length and looks similar save the idea that you're using a lambda to go through each of the itterations?