Python


Python is a versatile programming language that is becoming much more common in business applications.

A good place to start when learning coding is by using what’s called an Integrated Development and Learning Environment (IDLE).

Here is a good tutorial for getting started with Python IDLE.

You should start by typing simple commands in the command line, like

>>> print(“Hello, World!)

Once you have a feel for individual commands you should try writing a program. Python IDLE allows you to edit files. That means you can write and execute Python programs from within IDLE. 

To open a file use the open() function. For example, to open a text file, you could use:

f = open(“file.txt”, “r”)

Then to print the contents of this file, you would use

print(f.read())

To comment out a section of code, you can put three quotation marks at the beginning (“””) and three at the end (“””).

When writing to a csv file,

writerow() writes a single row at a time

writerows() writes multiple rows at a time

Resources

Here are some resources for learning Python:

Udemy: 100 Days of Code: The Complete Python Pro Bootcamp for 2022