Skip to content

Learning Python: Day 1

Technically, this is like the 5th “Day 1” (read: I’ve given up… a lot), but I’m holding myself accountable by documenting my journey here.

This past weekend I started reading Python Crash Course by Eric Matthes after multiple Reddit recommendations and failing to complete a Udemy course I enrolled in 2021.

I’m documenting my notes here:

Introduction:

  • Python is a programming language that can build programs, games, data visualization, web applications, develop programming foundations, solve business problems, and develop internal tools
  • Python is efficient and easier to read due to its cleaner syntax
  • Bonus: it can help you transition to a more satisfying career track

Part I: The Basics

Chapter 1:

  • (>>>) – Python prompt that indicates the use of a terminal window
  • installing VS Code, installing Python EXT, creating Python_Work (folder in Desktop), Command + N, Command + S, Hello_World.PY (file)
  • .py indicates a Python file
  • running Python programs from terminal (macOS)
  • terminal commands:
  • cd – change directory, navigate through file system
  • ls – list, show nonhidden files in the current directory
  • Open terminal

~$ cd Desktop/python_work/

~/Desktop/python_work$ ls

hello world.py

~/Desktop/python_ work$ python3 hello_world.py

Hello Python world!

Summary:

  • Python overview, python installation, text editor installation, ran Python code in the terminal, ran first Python program, hello_world.py, gained some troubleshooting experience
Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *