title: How would I use Try and except in this code?
body: <p>I don't understand.</p>
  
  <p>I thought TypeError was what I needed.
  I looked at some examples online and I thought this was right:</p>
  
  <pre><code>def main():
      x = int(input("Input a number:"))
      y = int(input("Input another number:"))
      result = x * y 
      while not result: 
          try:
              result = x * y
          except TypeError: 
              print('Invalid Number')
  main()
  </code></pre>