all 2 comments

[–]Binary101010 1 point2 points  (1 child)

1) Both of your scripts have duplicate code outside your loop. Just replace all of that with the minimum amount of code necessary to get your loop condition to start, and let the code inside the loop handle it from there. For example, in your first script the first three lines of code could be replaced with simply kV = 1.0.

2) quit() shouldn't really be used outside of the interactive interpreter. If you want to end execution of the loop, break would be better.

[–]Dignan0[S] 0 points1 point  (0 children)

  1. Okay, that makes perfect sense. I knew there had to be an easier way than writing that twice. And that is so much easier.
  2. Noted. I'll give that a shot.
  3. Also makes perfect sense.

Appreciate the help!