A Gentle Introduction to Python. Iraklis Akritas Pipeline TD/Plugin-Tools Programmer Candidate. Presenter Information. Please feel free to email me with any questions as well as connect with me: Email LinkedIn Twitter Google+ Website. Where does the name Python come from?.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Iraklis Akritas Pipeline TD/Plugin-Tools Programmer Candidate
The Burmese Python (Python molurusbivittatus) is the largest subspecies of the Indian Python and one of the six largest snakes in the world. [Wikipedia]
“In December 1989, I was looking for a "hobby" programming project that would keep me occupied during the week around Christmas. My office would be closed, but I had a home computer, and not much else on my hands. I decided to write an interpreter for the new scripting language...”
The "else" always applies to the nearest "if", unless you use braces. This is an essential problem in C and C++. Of course, you could resort to always use braces, no matter what, but that's tiresome and bloats the source code, and it doesn't prevent you from accidentally obfuscating the code by still having the wrong indentation. (And that's just a very simple example. In practice, C code can be much more complex.)
In Python, the above problems can never occur, because indentation levels and logical block structure are always consistent. The program always does what you expect when you look at the indentation.
From simple all element printing