As a treat, I'll let you read part of the script from a classic 'I'm Alan Partridge episode:
```
Lynn: Alan, there’s that teacher chap.
Alan: Michael, if he hits me, will you hit him first?
Michael: No, he’s a customer. I cannot hit customers. I’ve been told. I’ll go and get some stock.
Alan: Yeah, chicken stock.
Phil: Hello Alan.
Alan: Lynn, hand me an apple pie. And remove yourself from the theatre of conflict.
Lynn: What do you mean?
Alan: Go and stand by the yakults. The temperature inside this apple turnover is 1,000 degrees. If I squeeze it, a jet of molten Bramley apple is going to squirt out. Could go your way, could go mine. Either way, one of us is going down.
```

Alan is known for referring to the temperature of the apple turnover as 'Hotter than the sun!'. According to  space.com the temperature of the sun's corona is 2,000,000 degrees C, but we will ignore the science for now. 

Your job is simple, if (x) squared is more than 1000, return  'It's hotter than the sun!!', else, return 'Help yourself to a honeycomb Yorkie for the glovebox.'.

X will be either a number or a string. Both are valid. 

Other katas in this series:
Alan Partridge I - Partridge Watch
Alan Partridge III - London

Difficulty: introductory

Starter code:

def apple(x):
	

Solutions:
def apple(x):
  return "It's hotter than the sun!!" if int(x) ** 2 > 1000 else  "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    if int(x)**2 > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    if int(x) > 31:
        return "It's hotter than the sun!!" 
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."   

def apple(x):
    return ("Help yourself to a honeycomb Yorkie for the glovebox.","It's hotter than the sun!!")[int(x)**2>1000]


apple = lambda x: ("Help yourself to a honeycomb Yorkie for the glovebox.","It's hotter than the sun!!")[int(x)**2>1000]

import math

def apple(x):
    if (math.pow(int(x), 2) > 1000):
        return "It's hotter than the sun!!"
    return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    if float(x)**2>1000: return "It's hotter than the sun!!"
    else:                return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    return "It's hotter than the sun!!" if pow(int(x), 2) > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    if type(x) == str:
        temp = int(x)
    else:
        temp = x
    if temp ** 2 > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    n = int(x)
    if n*n > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    msg0 = "It's hotter than the sun!!"
    msg1 = "Help yourself to a honeycomb Yorkie for the glovebox."
    return [msg1, msg0][int(x)**2 >= 1000]

def apple(x):
    if (int(x) * int(x)) > 1000:
        return f'It\'s hotter than the sun!!'
    else:
        return f'Help yourself to a honeycomb Yorkie for the glovebox.'

apple=lambda x:"It's hotter than the sun!!"if int(x)**2>1000else'Help yourself to a honeycomb Yorkie for the glovebox.'

def apple(x: int) -> str:
    """ Get a message based on squared `x` parameter. """
    return "It's hotter than the sun!!" if pow(int(x), 2) > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

apple=lambda x: "It's hotter than the sun!!" if int(x)>31 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    if float(x) > 31.622776601683793:
        return "It's hotter than the sun!!"
    return "Help yourself to a honeycomb Yorkie for the glovebox."

apple = lambda x: ["Help yourself to a honeycomb Yorkie for the glovebox.","It's hotter than the sun!!"][int(x) ** 2 > 1000]

apple = lambda x : "It's hotter than the sun!!" if eval(str(x)) ** 2 > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    
    if type(x) is int:
        n = x
        if n ** 2 > 1000:
            return "It's hotter than the sun!!"
        else:
            return "Help yourself to a honeycomb Yorkie for the glovebox."
        
    elif type(x) is str:
        n = int(x)
        if n ** 2 > 1000:
            return "It's hotter than the sun!!"
        else:
            return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    return ('Help yourself to a honeycomb Yorkie for the glovebox.', 'It\'s hotter than the sun!!')[int(x)**2 > 1000]

def apple(x):
    return "It's hotter than the sun!!" if int(x)**int(2) >1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    integerX = int(x)
    if integerX**2 > 1000: 
        return 'It\'s hotter than the sun!!'
    else: 
        return 'Help yourself to a honeycomb Yorkie for the glovebox.'


def apple(x):
    return f"It's hotter than the sun!!" if int(x) * int(x) > 1000 else f"Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    phrases = ['It\'s hotter than the sun!!', 'Help yourself to a honeycomb Yorkie for the glovebox.']
    return phrases[int(x)**2 < 1000]


def apple(x: int) -> str:
    """ Get a message based on squared `x` parameter. """
    return ("Help yourself to a honeycomb Yorkie for the glovebox.", "It's hotter than the sun!!")[pow(int(x), 2) > 1000]

def apple(x):
    print(int(x)**2)
    return "It's hotter than the sun!!" if int(x)**2 > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    return f'It\'s hotter than the sun!!' if int(x)**2 > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    x = int(x)**2
    if x > 1e3:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."


m = lambda a: pow (int(a), 2)
apple = lambda a: "It's hotter than the sun!!" if m(a) > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def get_temp(x):
    return "It's hotter than the sun!!" if x**2 > 1000 else 'Help yourself to a honeycomb Yorkie for the glovebox.' 

def apple(x):
    if isinstance(x, int):
        return get_temp(x)
    else:
        return get_temp(int(x))

def apple(x):
    k=int(x)
    return "It's hotter than the sun!!" if k**2 >= 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    return "It's hotter than the sun!!" if int(x) * int(x) >= 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    y = int(x)
    if y * y > 1000:
        return "It's hotter than the sun!!"
    return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    num = float(x)
    return "It's hotter than the sun!!" if num ** 2 > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    return "It's hotter than the sun!!" if eval(str(x))**2>1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    return "Help yourself to a honeycomb Yorkie for the glovebox." if int(x)<32 else "It's hotter than the sun!!"

def apple(x):
    x = int(x)
    hot = x ** 2
    if hot > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    x = int(x)
    nelio = x * x
    if (nelio > 1000):
        return "It's hotter than the sun!!"

    return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    value = int(x)
    if value**2 > 1000:
        result = "It's hotter than the sun!!"
    else:
        result = "Help yourself to a honeycomb Yorkie for the glovebox."
    return result


def apple(x):
    "Температура солнца"
    x1  = int(x)
    if x1 ** 2 >= 1000:
        return  "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    x2 = int(x) * int(x)
    if x2 >1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."        


def apple(x):
    number = int(x)
    square = number * number
    if square > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    print(x)
    return "It's hotter than the sun!!" if int(x)**2 > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    return "".join("It's hotter than the sun!!" if int(x or 0)*int(x or 0) > 1000 else 'Help yourself to a honeycomb Yorkie for the glovebox.')

def apple(x):
    a = int(x) ** 2
    if a > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    x = int(x) if isinstance(x, str) else x
    if x ** 2 > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."
    


def apple(x):
    if pow(int(x), 2) < 1000: 
        return "Help yourself to a honeycomb Yorkie for the glovebox."
    elif pow(int(x), 2) > 1000:
        return "It's hotter than the sun!!"


def apple(x):
   x = int(x) if isinstance(x, str) else x
   return 'It\'s hotter than the sun!!' if x * x > 1000 else 'Help yourself to a honeycomb Yorkie for the glovebox.' 

apple=lambda x:["Help yourself to a honeycomb Yorkie for the glovebox.","It's hotter than the sun!!"][int(str(x))**2>1000]

def apple(x):
    temperature = int(x) ** 2
    if temperature > 1000:
        return "It's hotter than the sun!!"
    return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    a=int(x)
    return "It's hotter than the sun!!" if a**2 > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):

  result="Help yourself to a honeycomb Yorkie for the glovebox."

  x=int(x)
  if x**2>1000:
     result="It's hotter than the sun!!"
  else: 
     result="Help yourself to a honeycomb Yorkie for the glovebox."

  return result

def apple(x):
    x = int(x)
    s = x**2
    if s>1000:
        return "It's hotter than the sun!!"
    else:
        return 'Help yourself to a honeycomb Yorkie for the glovebox.'
e = apple("60")
print(e)

def apple(x):
    str1 = int(x)
    if pow(str1, 2) > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    a = int(x)
    a = a * a
    if a > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    return "It's hotter than the sun!!" if int(x) ** 2 > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."
    #if int(x) ** 2 > 1000:
    #    return "It's hotter than the sun!!"
    #else:
    #    return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    if type(x)==str:
        x=int(x)
    return "It's hotter than the sun!!" if x**2>1000 else "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    x = int(x)
    return ["Help yourself to a honeycomb Yorkie for the glovebox.", "It's hotter than the sun!!"][x * x > 1000]

def apple(x):
    v = int(x)**2
    if v > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."

import math

def apple(x):
    if int(x) > 10 * math.sqrt(10):
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."


from math import pow
def apple(x):
    return 'It\'s hotter than the sun!!' if pow(int(x), 2) > 1000 else 'Help yourself to a honeycomb Yorkie for the glovebox.'


def apple(x):
    y=int(x)
    list1=["It's hotter than the sun!!", "Help yourself to a honeycomb Yorkie for the glovebox."]
    if (y**2) > 1000:
        return list1[0]
    else:
        return list1[1]

def apple(x):
    temperature = int(x)**2
    if temperature < 1000:
        return "Help yourself to a honeycomb Yorkie for the glovebox."
    return "It's hotter than the sun!!" 

def apple(x):
    x=float(x)
    if x*x > 1000 :
        return "It's hotter than the sun!!"
    else :
        return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    new_int = int(str(x))
    if new_int ** 2 > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    korabel=int(x)
    mashfuck = "It's hotter than the sun!!"
    korfuck = "Help yourself to a honeycomb Yorkie for the glovebox."
    if (korabel**2>1000): return mashfuck
    else: return korfuck

def apple(x):
    import math
    
    num = int(x)
    
    if(num**2 > 1000):
        return "It's hotter than the sun!!"
    else:
        return 'Help yourself to a honeycomb Yorkie for the glovebox.'


def apple(x):
    a = int(x)
    return "It's hotter than the sun!!" if a*a >1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    x = int(x)
    x = x * x
    if x >= 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    if type(x)==str:
        x=int(x)
    if x**2<1000:
        return "Help yourself to a honeycomb Yorkie for the glovebox."
    else:
        return "It's hotter than the sun!!"
    


def apple(x):
      return "Help yourself to a honeycomb Yorkie for the glovebox." if int(x)*int(x)<1000 else "It's hotter than the sun!!"

def apple(x):
    a = ("Help yourself to a honeycomb Yorkie for the glovebox.",
         "It's hotter than the sun!!")
    return a[int(x) ** 2 > 1000]

def apple(x):
    if type(x) is str:
        x = int(x)
    return "It's hotter than the sun!!" if x * x > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    if int(x) ** 2 > 1000:
        return "It's hotter than the sun!!"
    return "Help yourself to a honeycomb Yorkie for the glovebox."
    # Flez


def apple(x):
    x=int(x)
    
    ans=x**2
    if(ans>1000):
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
  x=int(x)
  g=lambda x:x * x
  if g(x) > 1000:
    return  "It's hotter than the sun!!"
  else:
    return  "Help yourself to a honeycomb Yorkie for the glovebox."

apple=lambda n: "It's hotter than the sun!!" if float(n)**2>1000 else "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    i = int(x) ** 2
    if i >= 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    dbl_x = float(x)
    if dbl_x**2 > 1000:
        return "It's hotter than the sun!!"
    return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    return 'It\'s hotter than the sun!!' if int(x)**2>1000\
         else 'Help yourself to a honeycomb Yorkie for the glovebox.'

def apple(x):
    a= int(x)**2
    if a>=1000:
        return "It's hotter than the sun!!"
    else: return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    try:
        val = int(x)**2
    except:
        pass
    if val > 1000:
        return "It's hotter than the sun!!"
    return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    x = int(x)
    hot = "It's hotter than the sun!!"
    alternative = "Help yourself to a honeycomb Yorkie for the glovebox."
    return hot if x*x > 1000 else alternative

def apple(x):
    line1 = "Help yourself to a honeycomb Yorkie for the glovebox."
    line2 = "It's hotter than the sun!!"
    
    return line2 if int(x)**2 > 1000 else line1

def apple(x):
    #y = pow(int(x), 2)

    if ((pow(int(x), 2)) > 1000):
        return("It's hotter than the sun!!")
    else:
        return("Help yourself to a honeycomb Yorkie for the glovebox.")

def apple(x):
    squared = int(x) ** 2
    if squared > 1000:
        return "It's hotter than the sun!!"
    else:
        return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
  return "It's hotter than the sun!!" if int(x) >= 32 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
  number = 0
  if not (type(x) is int):
    number = int(x)
  else:
    number = x
  
  if number >= 32:
    return "It's hotter than the sun!!"
  else:
    return "Help yourself to a honeycomb Yorkie for the glovebox."


from math import pow
def apple(x):
    if pow(int(x),2) <= 1000:
        return 'Help yourself to a honeycomb Yorkie for the glovebox.'
    else:
        return "It's hotter than the sun!!"
    
    


def apple(x):
    x = str(x)
    x = float(x)
    if x*x > 1000: 
        return "It's hotter than the sun!!" 
    else: 
        return "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    pop = int(x)**2
    return "It's hotter than the sun!!" if pop > 1000 else "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    if int(x) < 32:
        return "Help yourself to a honeycomb Yorkie for the glovebox."
    else:
        return "It's hotter than the sun!!"

print((apple("3")))


def apple(x):
    if int(x)**2 > 1000:
        hot = "It's hotter than the sun!!"
    else:
        hot = "Help yourself to a honeycomb Yorkie for the glovebox."
    return hot

def apple(x):
    hot = int(x)**2
    if hot > 1000:
        return str("It's hotter than the sun!!")
    else:
        return str("Help yourself to a honeycomb Yorkie for the glovebox.")

def apple(x):
    x=int(x)
    if x**2>1000:
        r= 'It\'s hotter than the sun!!'
    else:
        r='Help yourself to a honeycomb Yorkie for the glovebox.'
    return r


def apple(x):
    return {
        True : "It's hotter than the sun!!",
        False : "Help yourself to a honeycomb Yorkie for the glovebox."
    } [int(x) * int(x) > 1000]

import math

def apple(x):    
    return "It's hotter than the sun!!" if math.pow(float(x), 2) > 1000.0 else "Help yourself to a honeycomb Yorkie for the glovebox."


def apple(x):
    x = int(x)
    if x * x >= 1000: 
        return "It's hotter than the sun!!"
    return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    intx = int(x)
    if intx ** 2 > 1000:
        return "It's hotter than the sun!!"
    else: 
        return "Help yourself to a honeycomb Yorkie for the glovebox."

def apple(x):
    return ("Help yourself to a honeycomb Yorkie for the glovebox.", "It's hotter than the sun!!")[int(x)**2 > 1e3]