0% found this document useful (0 votes)
42 views2 pages

Problem Solving with Python Course

The document describes a course on problem solving using Python. The course objectives are to develop logical thinking skills, learn to write algorithms and Python programs, and use Python data structures and control statements. The course covers basics of computers and problem solving, Python programming, control statements, functions, strings, lists, tuples, dictionaries and files. On completing the course, students will be able to develop algorithmic solutions, structure Python programs, use control statements and functions, and handle Python data structures.

Uploaded by

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

Problem Solving with Python Course

The document describes a course on problem solving using Python. The course objectives are to develop logical thinking skills, learn to write algorithms and Python programs, and use Python data structures and control statements. The course covers basics of computers and problem solving, Python programming, control statements, functions, strings, lists, tuples, dictionaries and files. On completing the course, students will be able to develop algorithmic solutions, structure Python programs, use control statements and functions, and handle Python data structures.

Uploaded by

abhay kumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

20CS102 PROBLEM SOLVING USING PYTHON 3/ 0/ 2/ 4

Nature of
Engineering Sciences
Course
Pre requisites Mathematical and Logical Knowledge

Course Objectives
The course is intended
1. To think logically and write algorithm and draw flow charts for problems.
2. To read and write simple Python programs.
3. To develop Python programs with conditionals and loops.
4. To define Python functions and call them.
5. To use Python data structures –- lists, tuples, dictionaries and files.

Course Outcomes
On successful completion of the course, students will be able to
Bloom's
CO. No. Course Outcome
Level
Develop algorithmic solutions to simple computational
CO1 Apply
problems and read, write, execute by simple python programs.
CO2 Structure simple python programs for solving problems. Understand
Administer the role of control statements and functions Apply
CO3
involving the idea of modularity.
CO4 Represent compound data using python strings and lists. Apply

CO5 Read and write data from/to files in python Programs. Understand

Course Contents:

Unit I Basics of Computers & Problem Solving 9

Computer Basics – Components-Computer organization - Computer Software-


Types of software - Software Development steps -Need for logical analysis and
thinking- Algorithms – Flowchart - Number system.
Unit II Introduction of Python Programming 9

Introduction-Python Interpreter-Interactive and script mode -Values and types,


variables, operators, expressions, statements, precedence of operators, Multiple
assignments, comments, Input and Output Statements.

Unit III Control statements and Functions 9

Conditional (if), alternative (if-else), chained conditional (if-elif-else)-Iteration-


while, for, break, continue, pass – Functions - Introduction, inbuilt functions, user
defined functions, passing parameters, return values, recursion, Lambda functions.

Unit IV Strings and Lists 9

Strings-String slices, immutability, string methods and operations -Lists-creating


lists, list operations, list methods, mutability, aliasing, cloning lists, list and strings,
list and functions-list processing-list comprehension, searching and sorting.

Unit V Tuples, Dictionaries and Files 9

Tuples- Tuple assignment, lists and tuples, Tuple as return value- Dictionaries-
operations and methods, Files and Exception-Text files, reading and writing files,
format Operator, Exception handling.

TOTAL: 45 Periods
Text Books:
1. Reema Thareja, "Problem Solving and Programming with Python”, Oxford
University Press, 2018
2. Dr. R. Nageswara Rao, “Core Python Programming”, Dreamtech Press, 2017
Edition

Reference Books:
1. Kenneth A. Lambert, “Fundamentals of Python: First Programs”, CENGAGE
Learning, 2012
2. Ashok Namdev Kamthane, Amit Ashok Kamthane, “Programming and Problem
Solving with Python” , Mc-Graw Hill Education, 2018.
3. Charles Dierbach, “Introduction to Computer Science using Python: A
Computational Problem Solving Focus”, Wiley India Edition, 2013
4. Timothy A. Budd,” Exploring Python”, Mc-Graw Hill Education (India) Private Ltd.,
2015

Common questions

Powered by AI

The course enables students to use Python functions for problem-solving by teaching them to define, call, and use both inbuilt and user-defined functions. Concepts such as passing parameters, returning values, and recursion are introduced to enhance problem-solving techniques .

The course considers foundational concepts such as computer basics, components, organization, and types of software. It highlights the importance of logical analysis, number systems, algorithms, and flowcharts for methodical problem-solving in Python .

The software development steps outlined in the course include the need for logical analysis and thinking, developing algorithms, and creating flowcharts. These steps are crucial for methodically understanding and solving computational problems .

The course integrates lists and strings into Python programming by exploring topics such as string immutability and methods, list operations and mutability, and their interaction through functions and list comprehensions. These elements are essential for data manipulation and processing in Python .

The course content emphasizes the application of control statements by teaching conditional (if, if-else, if-elif-else) and iterative statements (while, for, break, continue, pass) to manage the flow of logic in Python applications. Understanding these control structures allows students to create robust and modular programs .

The course facilitates students' ability to write and execute basic Python programs by covering fundamental Python concepts such as values and types, operators, expressions, variables, and input/output statements. This foundational knowledge enables students to construct and run simple programs effectively .

The course teaches data handling through Python by covering text file operations such as reading and writing files, using the format operator, and implementing exception handling to manage errors during file operations. These skills are essential for practical data management tasks .

The importance of the Python Interpreter is highlighted in the course for its role in offering both interactive and script modes of execution. This flexibility allows users to write, test, and debug code efficiently, facilitating a more practical and immediate understanding of programming concepts .

The course aims to develop students’ skills in algorithmic thinking by encouraging them to write algorithms and flowcharts for solving problems. This approach sets a foundation for writing efficient Python programs and enhances logical problem-solving abilities .

The course supports understanding Python’s data structures by teaching operations and methods for tuples, dictionary usages, and how they can be integrated within Python programs. Topics include tuple assignments, using tuples as return values, and dictionary operations to manage key-value pairs .

You might also like