Computer Projdct
Computer Projdct
External Examiner
ACKNOWLDGEMENT
The project
_____________________________would
not have completed without the help of management of
Upasana Academy and my Principal Kaushik Dutta Gupta
who provided me to access to the school’s resources. I am
equally thankful to my Subject Teacher
_______________________whose constant
guidance and support helped me to develop a proper
understanding of the project...
1.Finding an interpreter:
Before we start Python programming, we need to have an interpreter to interpret
and run our programs. There are certain online interpreters
https://ide.geeksforgeeks.org/ that can be used to run Python programs without
installing an interpreter.
Windows: There are many interpreters available freely to run Python scripts like
IDLE (Integrated Development Environment) that comes bundled with the
Python software downloaded from http://python.org/.
Linux: Python comes preinstalled with popular Linux distros such as Ubuntu and
Fedora. To check which version of Python you’re running, type “python” in the
terminal emulator. The interpreter should start and print the version number.
MacOs: Generally, Python 2.7 comes bundled with MacOS. You’ll have to
manually install Python 3 from http://python.org/.
2) Writing our first program:
Just type in the following code after you start the interpreter.
# Script Begins
Print(“Geeks Quiz”)
# Scripts Ends
Output:
Geeks Quiz
Let’s analyse the script line by line.
Line 1: [# Script Begins] In Python, comments begin with a #. This statement is
ignored by the interpreter and serves as documentation for our code.
Line 2: [print(“Geeks Quiz”)] To print something on the console, print() function
is used. This function also adds a newline after our message is printed(unlike in
C). Note that in Python 2, “print” is not a function but a keyword and therefore
can be used without parentheses. However, in Python 3, it is a function and must
be invoked with parentheses.
Line 3: [# Script Ends] This is just another comment like in Line 1.
Python designed by Guido van Rossum at CWI has become a widely used
general-purpose, high-level programming language.
Prerequisites: Knowledge of any programming language can be
Pros:
Ease of use.
Multi-paradigm Approach.
Cons:
Slow speed of execution compared to C,C++
Absence from mobile computing and browsers
For the C,C++ programmers switching to python can be
irritating as the language requires proper indentation of code.
Certain variable names commonly used like sum are functions
in python. So C, C++ programmers have to look out for these.
Industrial Importance:
Most of the companies are now looking for candidates who know about
Python Programming. Those having the knowledge of python may have
more chances of impressing the interviewing panel. So I would suggest that
beginners should start learning python and excel in it.
Python is a high-level, interpreted, and general-purpose dynamic
programming language that focuses on code readability. It has fewer steps
when compared to Java and C. It was founded in 1991 by developer Guido
Van Rossum. Python ranks among the most popular and fastest-growing
languages in the world. Python is a powerful, flexible, and easy-to-use
language. In addition, the community is very active there. It is used in many
organizations as it supports multiple programming paradigms. It also
performs automatic memory management.
Advantages :
i. Presence of third-party modules
ii. Extensive support libraries(NumPy for numerical calculations, Pandas for
data analytics etc)
iii. Open source and community development
iv. Versatile, Easy to read, learn and write
v. User-friendly data structures
vi. High-level language
vii. Dynamically typed language(No need to mention data type based on the
value assigned, it takes data type)
viii. Object-oriented language
ix. Portable and Interactive
x. Ideal for prototypes – provide more functionality with less coding
xi. Highly Efficient(Python’s clean object-oriented design provides enhanced
process control, and the language is equipped with excellent text processing
and integration capabilities, as well as its own unit testing framework, which
makes it more efficient.)
xii. (IoT)Internet of Things Opportunities
xiii. Interpreted Language
xiv. Portable across Operating systems.
Applications:
a. GUI based desktop applications
b. Graphic design, image processing applications, Games, and Scientific/
computational Applications
c. Web frameworks and applications
d. Enterprise and Business applications
e. Operating Systems
f. Education
g. Database Access
h. Language Development
i. Prototyping
j. Software Development.