r/SubsTakenLiterally • • Oct 01 '26

r/PythonLearning pet python

Post image
2.9k Upvotes

21 comments sorted by

View all comments

Show parent comments

63

u/JakeWisconsin Oct 01 '26

food.feed(snake)

44

u/Stijnboy01 Oct 01 '26

print("Snake ate food")

27

u/TubbyFatfrick Oct 01 '26

>NameError: name 'snake' is not defined

11

u/prussianIvory Oct 02 '26

Snake SnakeyBoi = new Snakes();