Finally | Development | Online Course With Appy Pie Academy

finally

Lesson Details:
June 29, 2020


I: Introduction

Python is a very popular programming language. It can be used for many purposes including creating web pages, managing databases, scientific applications, etc. It is an open source language released under the MIT license. This means that anyone can modify it or use it without having to pay anything.

The first thing you want to do when learning Python is download it from the official website of Python - https://www.python.org/. The website offers links to downloads for various platforms including Windows, Mac OS X, and Linux.

Downloading Python will give you a .zip or .tar file which you then need to extract on your computer. After extracting it, you'll have a folder called 'pythonXX' where XX is some version number. Inside this folder, you will find another folder called 'Scripts'. Open up the 'Scripts' folder and you will find an executable file called 'python.exe' (in Windows) or 'python' (in Linux/Mac). You can launch python by double clicking this file.

This will bring up the window below:

You can type in commands here and run them. Try typing in the following commands:

print "Hello World"

print (1 + 2) * 3

print ("Hello" + " world")

print "Hello" * 5

print "Hello" * (5 + 6)

print "Hello" * 5 + 6

print "Hello" * (5 + 6) + 7

The last line will give an error with the message "TypeError: unsupported operand type(s) for *: 'str' and 'int'" because you can't multiply strings and integers. This is just something to watch out for in case you're confused about how Python works.

So now that you know how to work in Python, let's look at some basic commands in Python. We'll start with how to print things on the screen. To print things in Python, we have a command called the “print” command. The syntax for the print command is as follows:

print("string")



























































loader
Course content