0% found this document useful (0 votes)
3 views1 page

Introduction to Python Programming

Chapter 2 introduces problem-solving in programming, defining algorithms and flowcharts. It provides an overview of Python, including its development history, features, advantages, and limitations. Additionally, it covers the modes of IDLE and the usage of the print() function with examples.

Uploaded by

anitha senthil
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)
3 views1 page

Introduction to Python Programming

Chapter 2 introduces problem-solving in programming, defining algorithms and flowcharts. It provides an overview of Python, including its development history, features, advantages, and limitations. Additionally, it covers the modes of IDLE and the usage of the print() function with examples.

Uploaded by

anitha senthil
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

Chapter 2– Getting Started with Python

1. Problem-solving in Programming:
Problem Solving is the process of identifying a problem, developing an algorithm and finally
implementing the algorithm to develop a computer program.
2. Algorithm:
Algorithm is step-by-step process to solve a problem.
3. Flowchart:
Flowchart is a pictorial or graphical representation of step-by-step solution to a given problem.

4. Python was developed by Guido Van Rossum in 1991 at National Research Institute for Mathematics and
Computer Science, the Netherlands.

5. Features of Python:
(i) It is a Free, Open Source and Portal Language.
(ii) It is interpreted and interactive language.
(iii) It takes less time to develop python programs than other programming languages.
(iv) It is a dynamically typed language i.e it doesn’t require declaration of variables.
(v) It supports Graphical User Interface(GUI) and Garbage collection
(vi) It is compatible with other languages like C, C++, Java, etc.,

6. Advantages of Python:
(i)Python is platform independent
(ii) It has clear, simple, concise and English-like instructions
(iii) It is interactive, interpreted and Object-oriented programming laguage.
(iv) It consists of vast amount libraries supporting mathematical, statistical, scientific tasks
(v) It is easy to learn and understand the language.

7. Limitations Python:
(i) Python is slower than other programming laguages like C, C++
(ii) Python’s memory consumption is high.
(iii) It is not a good language for mobile computing.
(iv) It requires more testing.

8. Modes of IDLE:
(i) Interative Mode
(ii) Script mode

9. print():
print() is built in function which is used to display the output on the screen.
Syntax:
print(value/variable/expression, sep, end, file = [Link])
sep: String inserted between values, default - space.
end: String appended after the last value, default – new line(‘\n’)
Eg.
Eg. Output
print(“hello python”) hello python
print(20, 30, sep = ‘@’) 20@30
print(20, 30, end =’#’) 20 39#

You might also like