old_contents: from builtins import input 
  
  #!/usr/bin/env Python3
  # Python 2 & 3 
  
  def user_float(): 
      ''' Prompt user for input, accepting only valid input.'''
      while True: 
          try: 
              return float(input('How many times would you like to wipe this device?: '))
          except ValueError: 
              print('Bad value, try again.')
  
  user_float() 
  
new_contents: from builtins import input 
  
  #!/usr/bin/env Python3
  # Python 2 & 3 
  
  # Import os functions
  
  import os
  
  def user_float(): 
      ''' Prompt user for input, accepting only valid input.'''
      while True: 
          try: 
              return float(input('How many times would you like to wipe this device?: '))
          except ValueError: 
              print('Bad value, try again.')
  
  user_float() 
  
subject: add import os