Posts

Showing posts from May, 2024

Python Fundamentals

Image
 This week we learned the basics of Python scripting. We learned how to import, use indexing, create while and for loops, and the remove() method among a few other fundamentals required for using Python. Below is the final result of the code I ran for the module.

Python Environments and Flowcharts

Image
This week our assignment was to create the file folders necessary for the course using a prewritten Python script. The assignment was very straightforward and I had no issues or difficulties running the code. We also created a flowchart, shown below, to detail how to convert radians to degrees in pseudocode. The last question in the process summary was about what we think about "The Zen of Python." I think that "The Zen of Python" can be a bit perplexing at first glance. However, after multiple readings and considering its relevance to programming, I interpret it to mean that there is an optimal way to write code. It should be straightforward and easily justifiable. In coding, simplicity is preferable, but if complexity is necessary, it shouldn't be convoluted. It's important to avoid creating overly dense or nested code and to ensure readability. Attention should be given to errors, and one should avoid guessing the next steps.