I was just digging up some cool modules in python, and this antigravity
module seems cool, and full of potentials, but I am not sure if it is what it sounds like.
Is there any use for it other than displaying the comic page on a browser? If there is, please do tell what it can be used for. Is there an example? Note that below in the link, that when the guy asks "But how are you flying?", the python dude answers, "I just typed import antigravity."
I was wondering if there actually is a way to make things fly by just importing antigravity, maybe in Pygame or other cross-platforms modules.
Here is the link...
import antigravity def main(): antigravity.fly() if __name__=='__main__': main()
import antigravity opens up a web browser that points to the classic XKCD comic mentioning Python. You know what, the developer's didn't stop here either, there's another Easter egg inside the Easter egg. If you look at the code, there's a function defined that purports to implement the XKCD's geohashing algorithm.
In Python, Modules are simply files with the “. py” extension containing Python code that can be imported inside another Python Program. In simple terms, we can consider a module to be the same as a code library or a file that contains a set of functions that you want to include in your application.
No, it's just an easter egg. This brief blog post has a bit more detail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With