Problem Solving and Programming With Python: Ltpac20 0 3.5
Problem Solving and Programming With Python: Ltpac20 0 3.5
(Common to all)
L T P A C 2 0 3 0 3.5 This course focuses on problem solving using visual programming and flowchart tools. Python being simple and easy to learn
syntax, it is used as an introductory coding platform to translate flow charts into programs. The course introduces fundamental programming concepts.
Python language is used to present concepts including control structures, functions, data structures followed by important Python packages that will be
useful in data analysis.
Course Objectives:
Introduction to computational thinking. Visual programming concepts. Scratch environment: sprites -- appearance and motion, angles and directions,
repetition and variation, changing costumes, adding background. Input/Output, variables and operators.
Learning Outcomes
Introduction to the idea of an algorithm. Pseudo code and Flow charts. Flow chart symbols, Input/Output, Assignment, operators, conditional if, repetition,
procedure and sub charts.
34
Example problems – Finding maximum of 3 numbers, Unit converters, Interest calculators, multiplication tables, GCD of 2 numbers
Example problems -- Fibonacci number generation, prime number generation. Minimum, Maximum and average of n numbers, Linear search, Binary
Search.
Learning outcomes:
(L3)
• solve numerical problems using Raptor (L3)
Python – Numbers, Strings, Variables, operators, expressions, statements, String operations, Math function calls, Input/Output statements, Conditional If,
while and for loops, User defined Functions, parameters to functions, recursive functions, Turtle Graphics.
Learning outcomes:
• solve simple problems using control structures, input and output statements.
(L3)
• develop Python programs for creating various graphical shapes using turtle
graphics. (L3)
Lists, Tuples, Dictionaries, Strings, Files and their libraries. Beautiful Idiomatic approach to solve programming problems.
35
Learning outcomes:
• summarize the features of lists, tuples, dictionaries, strings and files. (L2)
Unit V : Packages
Numpy -- Create, reshape, slicing, operations such as min, max, sum , search, sort, math functions etc.
Pandas -- Read/write from csv, excel, json files, add/ drop columns/rows, aggregations, applying functions
User defined packages, define test cases and perform unit testing
Learning outcomes:
After completion of this unit the student will be able to
• read data from files of different formats and perform operations like slicing,
Laboratory Experiments
1.An introduction to programming and algorithmic reasoning using raptor, Weingart, Dr. Troy, Brown, Dr. Wayne
3.Python Programming: Using Problem Solving Approach, Reema Thareja, Oxford University Press
Course outcomes:
• build Python programs for numerical and text based problems (L3)
38