One Line Functions Python Code For Snake