title: Codewars: Solving Kata - Highest and Lowest
body: <p>This should work but I'm getting errors when running the test cases. For some reason the fourth one fails. numbers[0] prints out '-1' but after assigning to highest_number or lowest_number only the '-' prints out. What gives?</p>
  
  <p>Code:</p>
  
  <pre><code>def high_and_low(numbers):
      if numbers:
          highest_number = numbers[0]
          lowest_number = numbers[0]
          numbers = numbers.split(" ")
          print(highest_number)
          print(lowest_number)
          print(numbers[0])
          for num in numbers:
              if int(num) &gt; int(highest_number):
                  highest_number = num
              if int(num) &lt; int(lowest_number):
                  lowest_number = num
          return highest_number + " " + lowest_number
  </code></pre>
  
  <p>Test Cases:</p>
  
  <pre><code>Test.assert_equals(high_and_low("4 5 29 54 4 0 -214 542 -64 1 -3 6 -6"), "542 -214");
  Test.assert_equals(high_and_low("1 -1"), "1 -1");
  Test.assert_equals(high_and_low("1 1"), "1 1");
  Test.assert_equals(high_and_low("-1 -1"), "-1 -1");
  Test.assert_equals(high_and_low("1 -1 0"), "1 -1");
  Test.assert_equals(high_and_low("1 1 0"), "1 0");
  Test.assert_equals(high_and_low("-1 -1 0"), "0 -1");
  Test.assert_equals(high_and_low("42"), "42 42");
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>ValueError: invalid literal for int() with base 10: '-'
  </code></pre>