I'm a designer. I want to write code. Follow my adventure as I learn to write Python with A Byte of Python.
Hello World
Hello World
But first, how do I know if my MacOS has Python, and how do I write Python?
To install Python, I installed Homebrew and then installed Python by running brew install python in the terminal. To write Python, I installed Visual Studio Code and the Python extension.
I created a file named helloworld.py and wrote print("Hello World"). I selected the text, right clicked, and ran the selected text, and the terminal wrote Hello World back to me.
I think Hello World a strange tradition to see how a programming language works at a bare minimum, and perhaps how it differs from other languages?
Image above: Hello World written in Python inside Visual Studio Code.