Activity of Writing a Python Program on Your Own

Activity of Writing a Python Program on Your Own

Lesson Details:
July 10, 2020


I: Introduction

In this article, I will be talking about Python as a programming language. I will talk about the history, the features, and the platform that runs python.

A: Introduction to programming coding languages

First, I will talk about what programming languages are. Programming languages are the ways in which we communicate with computers. They are like spoken languages in that they are not very formal like mathematics. Instead they are meant for us humans to use when communicating with computers.

There are many different types of programming languages. Some of them are used by most people, while others are used more for specific jobs. For example, JavaScript is used by people working on websites like Facebook and Google.

B: Activity of writing a python program on your own

Next, I will give you an activity in which you write a simple program using Python. Python is one of the most popular programming languages used today. A lot of people use it to do lots of things like creating games, making websites, and even doing math. It is easier than most other computer languages to learn because it has fewer commands than most other languages.

Before we start, you need to install Python on your computer so you can run it. Here is a link telling you how to do that: https://docs.python.org/2/howto/pyinstaller.html . If you are using Windows, click on the installer link on that page. When you are done installing Python, open up your text editor (like Notepad or Notepad++). Then type the following into your text editor:

#Python test number one

print(‘Hello world!’)

Save the file with the name test1.py somewhere on your computer where you can find it. Now, go back to your terminal window and type the following commands:

cd PathToYourFile

python test1.py

This should show you “Hello World!” on your screen. Congratulations! You have just written your first python program!

loader
Course content