Problem Solving Using Python


Author: Kulkarni S A

ISBN: 9789388005456

Copy Right Year: 2020

Pages:  248

Binding: Soft Cover

Publisher:  Yes Dee Publishing

Buy our E books @  Ulektz

Buy our E books @ Wonderslate

SKU: 9789388005456 Category:


Python is one of the most popular programming languages. This book tries to address early learners who have minimal or no programming experience. Also one of the challenges when you learn a programming language for the first time is how to get familiarized with the syntax and semantics at the earliest. The best part of this book on Python is to explain the nuances of syntax and semantics with hands-on programming examples. Thus you will learn by practising which is considered as one of the best techniques for learning any programming language. Also a large number of standard programming examples are solved to give confidence to the early stage learners/programmers. Thus in a nutshell the book has the following salient features.

Additional information

Weight .3 kg
Dimensions 23 × 15 × 1 cm

Table of Content

Chapter 1 Introduction
1.1 Computer Science
1.2 Algorithm
1.3 Definition of Algorithm
1.3.1 Characteristics of an Algorithm
1.4 The Essence of Computational Problem Solving
1.5 Limits of Computational Problem Solving
1.6 Computer
1.6.1 Hardware
1.6.2 Software
1.7 Compiler vs Interpreter
1.8 Syntax vs Semantic Errors
1.9 Procedural vs Object Oriented Programming Paradigm
1.10 The Process of Computational Problem Solving
1.11 Python Programming Language
1.11.1 Salient Features of Python Language
1.11.2 Python Editor IDLE
1.12 Python Interpreter Mode
1.12.1 Python Debugging
1.13 Values and Types
1.14 Variables
1.15 Python Data Types
1.16 Python Literals
1.16.1 Numeric Literals
1.16.2 String Literals
1.16.3 List of Literals in Python
1.16.4 Write a Python Program Add to Add Two Complex
Numbers c1 = 2+3j and c2 = 4+7j
1.17 Python Constants
1.17.1 Write a Python Program ( Using Boolean Data Types
1.18 Python Keywords
1.19 Expressions
1.19.1 Evaluate the Following Python Expression
1.19.2 Evaluate the Following Python Expression
Chapter 2 Control Structures
2.1 Conditional Constructs
2.2 Control Flow Types
2.2.1 Sequence Control
2.2.2 Selection Control
2.2.3 Repetition Control
2.3 Boolean Values  and Operators
2.3.1 Relational Operators
2.3.2 Logical Operators
2.4 Python Membership Operators
2.6 Input Statements in Python
2.6.1 Input() Function
2.7 Output Statements in Python
2.7.1 Print() Function
2.8 Decision Making
2.8.1 if Statement
2.8.2 Alternative (if-else)
2.8.3 Chained Conditional (if-elif-else)
Contents vii
2.9 While Loop
2.9.1 Write a Program in Python to Compute the Factorial for a Given
2.9.2 Write a Program in Python to Test Whether a Given Number is
Prime or Not
2.9.3 Write a Program in Python to Generate Fibonacci Series for a
Given Number
2.9.4 Infinite Loop
2.10 for Loop
2.10.1 Write a Python Program to Compute cos(x) from the Given Series
2.10.2 Write a Python Program to Compute sin(x) from the Given Series
2.11 Lists
2.11.1 Introduction
2.11.2 How to Read a List Type from a Keyboard
2.11.3 Python List Methods
2.11.4 Python List Traversal
Chapter 3 Functions
3.1 Introduction to Python Functions
3.2 Advantages of Functions
3.3 Syntax of User-Defined Function
3.4 Flowchart of User-Defined Function
3.5 Functions Which Returns a Value
3.6 Return Statement
3.7 Functions Which do Not Return Values
3.8 Positional Arguments
3.9 Keyword Arguments
3.10 Default Parameter
3.11 Local Variables and Global Variables
3.12 Call-By-Value vs Call-By-Reference in Python
3.13 Write a Python Program Using Functions to Generate the Floyds Triangle
for a Specified Number of Rows
3.14 Write a Python Program Using Functions to Compute the Least Common
Multiple (LCM) of Two Given Integers
Chapter 4 Python Objects
4.1 Introduction
4.2 Object References
4.3 What Happens When the Value of a Variable Copied to Another Variable
4.4 Garbage Collection in Python
4.5 List Copying
4.6 Shallow and Deep Copying of Lists
4.7 Turtle Graphics
4.8 Turtle Attributes
4.9 Python Modules
4.9.1 Importing Modules
4.9.2 How to Create Your Own Modules
4.9.3 To Invoke Specific Functions or Variables from Modules
4.9.4 The dir() Function
4.9.5 Restoring a Module
4.10 Files Introduction
4.11 Text Files
4.11.1 Reading from Files
4.11.2 Reading Lines from Files
4.12 Stripping Characters from Files
4.13 Writing into Files
4.14 Filenames and Paths
4.15 Strings in Python
4.15.1 Reading Strings from Keyboard
4.15.2 Accessing Strings
4.15.3 Modifying Strings in Python
4.15.4 String Concatenation
4.15.5 String Updating
4.15.6 Finding the Length of a String
4.15.7 Iterating Through a String
4.15.8 String Membership Operations
4.15.9 Built-in String Functions
4.15.10 Searching in a String
4.15.11 Splitting Strings and Removing Whitespaces
4.15.12 String Join, Length, Replace and Miscellaneous String Functions
4.16 Escape Sequences in Python
4.17 Write a Python Program to Check Whether an Entered String is a
Palindrome or Not Without Using Built-in String Functions Available in
4.18 Write a Python Program to Count Separately the Vowels of a Given
4.19 Write a Python Program to Compute the Length of an Input StringWithout
Using the Built-in Python Function “len”
4.20 Write a Python Program to Count the Number of Characters in a Given
4.21 Write a Python Program to Check the Bigger of the Two Inputted Strings
4.22 Write a Python Program to Count the Common Characters in the Two
Inputted Strings
4.23 Write a Python Program to Count the Occurrences of the Substring in a
Given String
4.24 Write a Python Program to Check Whether the Characters of an Inputted
String are in Alphabetical Order
4.25 Write a Python Program to Sort Words Entered by User in Alphabetical
4.26 Exceptions in Python
4.27 Write a Python Program to Demonstrate IO Error Exception When We
Try to Read a Non-existing File .
4.28 Write a Python Program that Computes the Sum of All Integer Numbers
Stored in a File Named “data.txt” with an Exception Handling Features
if the Numbers are Not Integers. The Sum Should be Printed on the
Command Prompt
Chapter 5 Objects and Their Use
5.1 Dictionary Introduction
5.2 Creating a Dictionary and Printing a Dictionary
5.3 Accessing Dictionary Elements
5.4 Modifying a Dictionary
5.5 Delete Operations on a Dictionary
5.6 Dictionary Key Properties
5.7 Comparing Two Dictionaries
5.8 Python Dictionary Built-in Functions
5.9 How to Generate Keys, Values and Items for Python Dictionary
5.10 Copying and Updating a Dictionary
5.11 Write a Python Program Using Dictionary to Generate a Small Dictionary
of Synonyms. The Program Should Then Accept a Word and Generate
Synonyms for the Same
5.12 Write a Python Program Using Dictionary to Accept a Sentence and
Generate the Frequency of Words for the Same
5.13 Write a Python Program to Create a Dictionary Consisting of State and
Their  Corresponding  Dishes. The Program Should Accept a State Name
from the User and Generate the Corresponding Dishes
5.14 Write a Python Program Using Dictionary to Find the Maximum and
Minimum Among the Given Values
5.15 Sets Introduction
5.16 Set Creation
5.17 Write a Python Program to Demonstrate Set Operations
5.18 Object Oriented Programming with Python
5.19 Encapsulation
5.20 Inheritance
5.21 Polymorphism
5.22 Recursive Function in Python

Laboratory Exercises
Appendix A Algorithmic Problems Solving

About The Author

Dr. S. A. Kulkarni is Associate Professor, Department of Computer Science and Engineering, The National Institute of Engineering (NIE), Mysuru. He has a Ph.D. in the faculty of Computer and Information Science from The National Institute of Engineering Research Center, Mysuru, affiliated to Visvesvaraya Technological University, Karnataka.


Buy our E Books @




There are no reviews yet.

Be the first to review “Problem Solving Using Python”

Your email address will not be published. Required fields are marked *

New Product Tab

Here's your new product tab.