In this unit, you learn a bit about Python in general, and you install Python on your system if it wasn’t already there. You also install a text editor to make it easier to write Python code. You run snippets of Python code in a terminal session, and you ran your first program, hello_world.py. You will probably learn a bit about troubleshooting as well
Find the Current Version of Python Available as well as the version of python installed on your system
Windows Start Menu - Type in cmd
At the prompt, type in python --version
You will need to find VS Code from the start menu
Once you open it (don't log in) we select NEW FILE
From there, we select the PYTHON FILE (Below)
Welcome to the first program all programmers write. It's called Hello World. Consider this your rite of passage into the programming universe!
We will do this together, but here's a quick overview of how we use VS Code in order to create and run a python program
Just a note...
Get ready for a ton of errors. That's just programming
Explore the Python home page (https://python.org) to find topics that interest you. As you become familiar with Python, different parts of the site will be more useful to you
Type in the following file:
print("************************************************")
print("* *")
print("* H E L L O W O R L D *")
print("* *")
print("************************************************")
Using the file that you just created. Make a typo somewhere in the line and run the program again.
Can you make a typo that generates an error?
Can you make sense of the error message?
Can you make a typo that doesn’t generate an error?
Why do you think it didn’t make an error?
If you had infinite programming skills, what would you build?
You’re about to learn how to program. If you have an end goal in mind, you’ll have an immediate use for your new skills; now is a great time to write brief descriptions of what you want to create. It’s a good habit to keep an “ideas” notebook that you can refer to whenever you want to start a new project.
Take a few minutes now to describe three programs you want to create.