How to shorten the code? - Def()

No cap, your script looks dope! :grinning:

learned a new thing - Your code cannot be fully displayed on the laptop screen.

def f():
    r = range; # adding a ';' looks professional
    return {True if (x**2 + 5*x +6) > (2*x + 5*x + 9)
            else False for x in r(-10, 10)}
print(f())