title: Is it possible to set a number to NaN or infinity?
body: <p>Is it possible to set an element of an array to <code>NaN</code> in Python?</p>
  
  <p>Additionally, is it possible to set a variable to +/- infinity? If so, is there any function to check whether a number is infinity or not?</p>