When comparing pygame vs Codea, the Slant community recommends pygame for most people. In the question“What are the best 2D game engines?” pygame is ranked 16th while Codea is ranked 107th. The most important reason people chose pygame is:
Pygame uses Python as its scripting language. Python is widely considered one of the easiest languages to grasp even for beginners.
Specs
Ranked in these QuestionsQuestion Ranking
Pros

Pro Easy Python syntax
Pygame uses Python as its scripting language. Python is widely considered one of the easiest languages to grasp even for beginners.
Pro Very easy to understand
The API is very straightforward.
Pro Good canvas system
Pygame has a drawing system that allows the user to create and draw on an unlimited number of canvases.
Pro Helpful code editor
Errors show up live, as you type. Smarter autocompletion picks up your local and global variables, including nested types. Everything else is just plain smarter, from indentation to highlighting.
Pro Ships with music and sound packs
Codea ships with three great music and sound packs, composed just for Codea and free for you to use in whatever you create.
Pro You can code on an iPad and easily distribute the game
Pro Location library
Location library lets you make use of the GPS inside your iPad. Get your latitude, longitude, altitude and more with a dead-simple API designed specifically for Codea.
Cons

Con Deathly slow
Con Nonexistent community
No good forums, wiki, or other ways to reach other Pygame developers.
Con Very basic
Pretty much just a wrapper for SDL.
Con Pygame is a multimedia framework, not a game engine
Physics, AI and networking are not supported.
Con Messy documentation
The docs are messy, and some basic functions are infuriating to work out. There's even some places in the documentation where it's clearly wrong about how a method is called/what the arguments really do.
Con Outdated
Pygame uses a really old version of SDL and is missing some of the features developed for SDL2.
Con Hasn't been updated in years
Hasn't been updated in years.
