GIS 5103 Module 1
For this week's lesson we were introduced to Python and the basics of creating flowcharts. As part of this we were asked to create a flowchart converting radians to degrees.
Additionally, we were taught how to find The Zen of Python, a short stanza on how to best write Python code. While some of the terms, such as Namespaces, are unfamiliar, the poem's overall theme is clear. The first several lines highlight the basics of writing any good code, that it should be simple, explicit, easy to understand, and well commented. The inclusion of statements like Special cases aren’t special enough to break the rules, suggests that, unlike many other programming languages, Python isn’t case sensitive. The idea that there should be only one obvious way to write the code is definitely a highlight of Python compared to some other programming languages.
Comments
Post a Comment