Fop Lec 1 Part 2
Fop Lec 1 Part 2
Programming
Overview of Computer Programming
Computer Programming?
Computer programming, often referred to as coding or
software development, is the process of instructing a
computer to perform a task by providing it with a set of
instructions (code).
Purpose:
To automate tasks, solve problems, process data, and build
applications that enable computers to perform various
functions.
Computer Programming Important?
• Data Structures: Organizing and storing data efficiently (lists, arrays, dictionaries,
etc.).
Application Areas
• Web Development: Building websites and web applications (HTML, CSS, JavaScript,
etc.).
• Software Development: Creating desktop and mobile applications.
• Data Science: Analyzing and interpreting data (Python, R).
• Game Development: Developing interactive games (Unity, Unreal Engine).
• Embedded Systems: Programming for devices (IoT, microcontrollers).
Tools and Development Environments
• Software for coding, debugging, and testing (e.g., Visual Studio Code, PyCharm).
• Problem Solving Skills: Breaking down complex problems into smaller, solvable
parts.
Typical Python Development Environment
Python development environment consists of various tools and components that help
Python Interpreter:
Load
Transfer executable image to memory ( Load the data what will be Output)
Execute
Python has a package manager called pip (or pip3 for Python 3)
that allows you to easily install and manage Python packages
(libraries and frameworks). You can use it to install third-party
packages like NumPy, Pandas, and Matplotlib.
. ipynb file
Jupyter Note book file extension
Basic terminology
Keywords
keywords (also known as reserved words) are a set of
predefined words that have special meanings and purposes
within the language.
These words cannot be used as identifiers (variable names,
function names, etc.)
Constant
For letters
8 / 12 equals? 0
The remainder operator (%) returns the remainder after dividing the second
operand into the first
14 % 3 equals? 2
8 % 12 equals? 8
Assignment Operators
Assignment Sample Explanation
operator expression
+= c += 7 c=c+7
-= d -= 4 d=d-4
*= e *= 5 e=e*5
/= f /= 3 f=f/3
%= g %= 2 g=g%2
Relational operators