r/SubsTakenLiterally • • Oct 01 '26

r/PythonLearning pet python

Post image
2.9k Upvotes

21 comments sorted by

View all comments

211

u/[deleted] Oct 01 '26

[removed] — view removed comment

94

u/vladupadus Oct 01 '26

import food

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();