Docsity

Python Programming: The basics, Lecture notes of Computer Science

Toggle sidebar
bg1
What is python?
Python is a cross-platform programming language, which means that it can
run on multiple platforms like Windows, macOS, Linux, and has even been
ported to the Java and .NET virtual machines. It is free and open-source.
Even though most of today's Linux and Mac have Python pre-installed in it,
the version might be out-of-date. So, it is always a good idea to install the
most current version.
Python Keywords and Identifiers
In this tutorial, you will learn about keywords (reserved words in Python) and
identifiers (names given to variables, functions, etc.).
Python Keywords
Keywords are the reserved words in Python.
We cannot use a keyword as a,variable,name,,function,name or any other
identifier. They are used to define the syntax and structure of the Python
language.
In Python, keywords are case sensitive.
There are 33 keywords in Python 3.7. This number can vary slightly over the
course of time.
All the keywords except,True ,,False ,and,None ,are in lowercase and they must
be written as they are. The list of all the keywords is given below.

Partial preview of the text

Download Python Programming: The basics and more Lecture notes Computer Science in PDF only on Docsity!

What is python? Python is a cross-platform programming language, which means that it can run on multiple platforms like Windows, macOS, Linux, and has even been ported to the Java and .NET virtual machines. It is free and open-source. Even though most of today's Linux and Mac have Python pre-installed in it, the version might be out-of-date. So, it is always a good idea to install the most current version.

Python Keywords and Identifiers

In this tutorial, you will learn about keywords (reserved words in Python) and identifiers (names given to variables, functions, etc.).

Python Keywords

Keywords are the reserved words in Python. We cannot use a keyword as a variable name, function name or any other identifier. They are used to define the syntax and structure of the Python language. In Python, keywords are case sensitive. There are 33 keywords in Python 3.7. This number can vary slightly over the course of time. All the keywords except True, False and None are in lowercase and they must be written as they are. The list of all the keywords is given below.