Lecture 1 and 2
Lecture 1 and 2
In Python
Edited by :
Dr. Akram Alhammadi
Advance Programming
• Introduction and features
• If Condition and loop
• File Handling
• Class /Objects (OOP)
• Networking
• GUI
• Database
• Jupyter Notebook
• Anaconda
• Numpy
• Pandas
• Optional (Matplotlib and Seaborn)
Programming in Python
As you learn Python throughout this course, there are a few things you
should keep in mind.
• Python is case sensitive.
• Spacing is important.
• Use error messages to help you learn.
What is Python?
Here are just a few of the career options where Python is a key skill:
• Game developer
• Web designer
• Python developer
• Machine learning engineer
• Data scientist
• Data analyst
• Data engineer
• DevOps engineer
• Software engineer
• Many more other roles
What can you do with Python?
• Easy-to-learn
• Easy-to-read
• Easy-to-maintain
• A broad standard library
• Portable
• Databases
• GUI Programming
Getting Python
• Python accepts single ('), double (") and triple (''' or """) quotes to
denote string literals, as long as the same type of quote starts and
ends the string.
• The triple quotes are used to span the string across multiple lines. For
example, all the following are legal
word = 'word'
sentence = "This is a sentence."
paragraph = """This is a paragraph. It is
made up of multiple lines and sentences."""
Comments in Python
They are added with the purpose of making the source code easier for
humans to understand, and are ignored by Python interpreter.
There are three types of comments available in Python
1. Single line Comments
2. Multiline Comments
3. Docstring Comments
• A hash sign (#) that is not inside a string literal begins a comment. All
characters after the # and up to the end of the physical line are part of
the comment and the Python interpreter ignores them.
Following triple-quoted string is also ignored by Python interpreter and can be used as a multiline comments: