old_contents: number = raw_input('Enter a number to find a square : ')
  try :
    actualNumber = int(number)**2
    print 'Square of the number is', actualNumber
  except :
    print 'Instead of typing number you entered -', number
  
new_contents: number = raw_input('Enter a number to find a square : ')
  try :
      # In order to accept floating numbers, we are converting the varibale to float.
      actualNumber = float(number)**2
      print 'Square of the number is', actualNumber
  except :
    print 'Instead of typing number you entered -', number
  
subject: Convert variable from int to float, in order to accept floating value as well