Lecture 2 Introduction to Python (1)
Lecture 2 Introduction to Python (1)
Lecture 2 : Outline
• Introduction
• Python 3.1 Installation
• “ Hello World” – Example
• Input , Processing and Output
• Variables and Data Types
• Python Statements and Expressions
• Python Comments
• How Python Works?
• Lab#1
• Anaconda Navigator Installation
• Machine Language
• A computer can only directly understand Machine Language
• Also called binary language – 1’s and 0’s Only
• Easier for computer to understand but difficult for programmers to program
• Assembly Language
• Uses special symbols called mnemonics instead of binary numbers
• Assembly language program cannot be executed directly by CPU
• Need a translator called “ Assembler”
• Challenges
• Both are difficult for humans to program
• Each brand of CPU has its of instruction set ( binary and assembly)
• So, program written for one CPU brand may not work for the other ( Compatibility Issue)
Source :https://rotechnica.com/what-is-python-used-for/
Lecture 2: Introduction to Python uali@iba.edu.pk 8
Giants are using Python!
Source :https://rotechnica.com/what-is-python-used-for/
Lecture 2: Introduction to Python uali@iba.edu.pk 9
Reasons to choose Python ?
Open Source
Easy to Learn
Code Readability
High Demand
How it works ?
Jupyter Lab JupyterLab is the next generation of the Jupyter Notebook. It aims at fixing many usability issues of the
Notebook, and it greatly expands its scope. JupyterLab offers a general framework for interactive
computing and data science in the browser, using Python, Julia, R, or one of many other languages. (
Source)
Spyder Spyder is an open-source cross-platform integrated development environment (IDE) for scientific
programming in the Python language. (Wikipedia)
PyCharm PyCharm is a dedicated Python Integrated Development Environment (IDE) providing a wide range of
essential tools for Python developers, tightly integrated to create a convenient environment for
productive Python, web, and data science development. (Wikipedia)
Visual Studio Code Visual Studio Code, also commonly referred to as VS Code, is a source-code editor made by Microsoft
for Windows, Linux and macOS. Features include support for debugging, syntax highlighting, intelligent
code completion, snippets, code refactoring, and embedded Git (Wikipedia)
Source
Lecture 2: Introduction to Python uali@iba.edu.pk 38
Resources / References
• Starting out with Python (Textbook)
• Chapter 1 and Chapter 2
• https://pynative.com ( An online Platform to learn Python)
• https://www.dataquest.io/blog/jupyter-notebook-tutorial/ ( A Tutorial on
How to use Jupyter Notebook?)