0% found this document useful (0 votes)
28 views

CAP460 Lecture0

Uploaded by

Mr Mrtian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

CAP460 Lecture0

Uploaded by

Mr Mrtian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 36

Lecture #0

CAP460
Fu n d a m e n t a l s Of
P yKick
The t hStart
on
Session
Course Details

L-T-P :: 2-0-4
[Two
Lectures,
Four
Practical
s/week]
Revised Bloom’s
Taxonomy
Course Outcomes

Through this course students should be able to

• CO1 :: define the python syntax and semantics of


control flow statements
CO2 :: understand the working of strings, functions
and files CO3 :: apply various operations on data
structures like lists, tuples, dictionaries and sets for
problem solving
CO4 :: analyze the unexpected situations and
manage them using appropriate exception handling
mechanism.
Program Outcomes
PO1 Domain Knowledge: Ability to apply exploration to study and analyze
problems in different areas of information technology.
PO2 Employability: Ability to get employment opportunities in
corporate/government/private sectors or to be successful entrepreneur PO3
Modern tool usage: Ability to use the modern programming languages,
tools, techniques and skills necessary for design, develop and deploy software based
applications.
PO4 Analysis & design of complex problems: Ability to apply knowledge of
computer science concepts, principles & techniques to solve various computing
problems.
PO5 Societal Impact: Acquire and apply advanced knowledge of concepts and
participate in sustainable
development.
PO6 Professionalism: Ability to Manage time well, demonstrate an appropriate level
of preparedness and maintain a high standard for personal and professional
demeanor, accepting responsibility and accountability for words and actions
PO7 Research Problem Solving: Ability to assimilate, evaluate and present
research results objectively
CO1: define the CO2: understand the CO3: apply various CO4: analyze the
python syntax and working of strings, operations on data unexpected situations
semantics of functions and files. structures like lists, and manage them using
control flow tuples and appropriate exception
Outcomes dictionaries for handling mechanisms.
statements. problem solving.

PO1: Ability to get employment


opportunities in
corporate/ government/private sectors 3 3 3 3
or to be a successful entrepreneur
PO2 : Understand the impact of sciences
and computers’ to craft solutions in a
global, economic, environmental, and 1 2 2
societal context.
PO3: Ability to use the modern
programming languages,
tools, techniques and skills necessary for 3 3 3 3
design, develop and deploy software
based applications.

PO4: Recognize the need for, and have


the preparation and ability to engage in
independent and life-long learning in the
broadest context of upcoming
information technology changes.

PO5: Ability to apply exploration to study


and analyze problems in different areas
of information technology.
PO6: Comprehend the fundamentals,
principles, applications and importance of
computational concepts.
PO7: Capability to move on to higher
level learning based on computer science
fundamentals. 1 1 2 2
The Hitch…

Three BURNING questions in mind…

• Why we are learning Python?

• What would we do with it?

• What will be the course outcomes?


Daily Routine

• Let us look around our daily routine…


• Let us see where all we do programming everyday
• Simple things we do to start the day

So there is ONE program you know which is there in you…


Daily Routine
Start

Pick Brush
• There is a set procedure
Rinse
• Each step is defined Brush

• The occurrence is ordered Apply


Paste
• Jump is NOT permitted
Brush
• A step cannot be skipped
Rinse
Mouth

Rinse
Brush

Stop
Daily Routine
• Yet another example but more complex

Vision
Sensor
Sipping TEA

Smell
Sensor

Radiation
Sensor
If all sensors SIP
If even one is WAIT!!! Touch
Sensor
So what does this mean?
• Take ANY activity of the day…

• It will have a set procedure

• It has to be done in a designated way

• If not done the specified way will yield wrong results

• Success in doing it depends on how closer one is to


the prescribed method

• This clearly shows that everything has a


What Next?

• There has to be logic machine to


assimilate, understand, solve, store,
retrieve and represent logic

• There has to be a LANGUAGE to


communicate with the logic machine

Otherwise….
Diving deeper…

How do I become
the master of
Python?

By working more
harder and executing
various logics
correctly
Course Content
• Introduction to python
• Data types and operators
• Program flow control
• String Handling
• Lists
• Tuples
• Dictionaries
• Sets
• Functions
• File handling
• Exception handling
What do we need to know?

Introduction to Python

• Python Basics
• Installation of Python
• Working with python
• Basic syntax
• Variables
• Blocks
• Applications of python
What do we need to know?

Data Types & Operators

• Declaring and using numeric data types:


int, float, complex
• Python basic operators
• Use of sequence data types
What do we need to know?

Program Flow Control

• Conditional blocks using if, else and elif


• Simple for loops in python
• Use of while loops in python
• Loop manipulation using pass, continue, break
and else
What do we need to know?

Handling Strings

• Accessing strings
• String length
• String traversal
• String comparison
• Find function
• for loop using string
What do we need to know?

Lists

• Accessing lists
• Operations on list
• Slices
• Deletion
• for loop using list
• Functions and methods
What do we need to know?

Tuple
s
• Accessing tuples
• Operations on tuples
• Working with tuple
functions and methods
What do we need to know?

Dictionaries

• Accessing values in dictionaries


• Working with dictionaries
• Properties
• Functions
• for loop using dictionaries
What do we need to know?

Sets

• Access set items


• Add set items
• Remove set items
• Looping on sets
• Join sets
• Set methods
What do we need to know?

Functions

• Defining a function
• Calling a function
• Types of functions
• Function arguments
What do we need to know?

File handling

• Printing on console
• Reading data from keyboard
• Text and binary files
• Opening and closing file
• Reading and writing files
What do we need to know?

Exception handling
• Exception
• Exception handling
• Except clause
• multiple except with
single try
• Nested of try
• try and finally clause
• User-defined exceptions
Practical Applications of Python
MOOCs

 Python for Data Science

https://onlinecourses.nptel.ac.in/noc23_cs99/preview

 Programming with Python

https://www.udemy.com/course/100-days-of-code

 Python Certification Training Course

https://www.edureka.co/python-programming-certification-training

 Learn Python programming online

https://www.edx.org/learn/python

© LPU :: CAP267 Data Structures


Academic benefit for students:
Academic benefit for students:
Course Assessment Model
Marks Break-up
• Attendance 5
• Continuous Assessment (3 best out of 4) 25
• MTT 20
• ETP 25
• ETT 25
• Total 100
Relevant Resources
 https://www.w3schools.com/python/
 https://docs.python.org/3/tutorial/
 https://www.tutorialspoint.com/python3
/
 https://www.udemy.com/the-ultimate-
python-programming-course/
Text Books

 PROGRAMMING AND PROBLEM SOLVING WITH PYTHON


by ASHOK KAMTHANE, AMIT ASHOK KAMTHANE, MC
GRAW HILL
Reference Books

 PYTHON: THE COMPLETE REFERENCE by MARTIN C.


BROWN, MC GRAW HILL
Imp. Points to keep in Mind
Things to Ensure in True Letter and Spirit:

• Join the class on time

• RECAP of 2 Minutes on daily basis

• Home Exercises

• Never skip any CA

• No postponement of CA

• Quiz Polls in each class


That’s all for this lecture

Next Class: Introduction to Python Concepts…

You might also like