what is my best approach to deal with negative floating values in Python3? I know I can remove the negative all together with strip but I'd like to return the negative result if possible

Example the following code returns a math domain error due to the negative number:

not exactly, though that would be great if I could see the result as a negative somehow. I am scraping information from Yahoo converyting it to a float then taking the square root of those numbers, normally the numbers are postive so it works well. Unfortunatly when I get a negative number the entire sequence stops, so I am really asking how to throw an error for the negative number and still continue on with the rest of the program as it stops all the calculations beyond that point. I'm a very new programmer with no formal education in this stuff just learning from books and youtube, I've been thinking of trying some sort of an if / else statement but I dont understand how to implement it if I receive an error and still have the program continue to the next step. if it helps this is the full code I have to this point.

Edit: Hi Tony! It's been a while...
Edit2: numpy.sqrt() already returns nan for negative numbers!
Edit3: please @steven.rose.94, use python tag as well as python3 to increase the audience of your posts.

Dear Friends,
I developed Desktop application in C# .Net for client. client purchased software and installed it one than more system without my permission. How to restict him to not ...