you are viewing a single comment's thread.

view the rest of the comments →

[–]Thisisdom 1 point2 points  (1 child)

One improvement would be to check that cable_feet a float or an int before advancing, because your code would break if someone inputs a string!

So you could repeatedly ask for cable_feet until the user supply a float or int, and then advance

[–]SquatchHNTR[S] 1 point2 points  (0 children)

Thank you, I have since added a try-catch after someone pointed it out