0% found this document useful (0 votes)
8 views

CS Assignment

Python basic information

Uploaded by

snrnaveen444
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

CS Assignment

Python basic information

Uploaded by

snrnaveen444
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Computer science

assignment

Topic: About Python &


Working with Python.

Name: Sivabalan Class: 11-


C
Date Of Submission: 12-08-
2024
INDEX:
s.n Topic
o
1. What is
python?
2. Advantages &
Disadvantages
3. How to install
python
4. Basic python
commands
What is python?
Python is a high-level, interpreted
programming language designed by Guido
van Rossum and first released in 1991.
Renowned for its clean and readable syntax,
Python simplifies coding tasks, making it
accessible for both newcomers and
experienced developers. Its versatility is a
significant factor in its popularity across
various domains. In web development,
Python is a key player with frameworks like
Django and Flask, which support the
creation of robust and scalable web
applications. For data analysis and
visualization, Python offers powerful libraries
such as pandas for data manipulation,
NumPy for numerical operations, and
Matplotlib and Seaborn for visualizing data.
Python is also a leading language in
machine learning and artificial intelligence,
with popular libraries like TensorFlow,
PyTorch, and scikit-learn facilitating the
development of sophisticated models. It is
widely used for scripting and automating
repetitive tasks, enhancing productivity.

Advantages of python
Python is a highly popular programming
language known for its versatility, simplicity,
and wide range of applications. Here are
some key advantages of Python:
1. Readability and Simplicity
2. Versatile and multi-Purpose
3. Extensive Libraries and
Frameworks
4. Productivity and speed
5. Integration Capabilities

It excels in various fields like web


development, data analysis, and artificial
intelligence, thanks to its extensive built-in
and third-party libraries. Additionally, Python
benefits from a strong and active
community, providing ample support and
resources for developers.
Disadvantages of python

Here are five key disadvantages of Python:


1. Performance: Slower than compiled
languages due to its interpreted nature.
2. Memory Consumption: Can be memory-
intensive, which may be an issue for
resource-limited systems.
3. Mobile Development: Less suitable for
mobile app development compared to
languages like Swift or Java.
4. Runtime Errors: Dynamic typing can lead
to runtime errors that are harder to catch
during development.
5. Global Interpreter Lock (GIL): Limits
performance in multi-threaded applications
by allowing only one thread to execute
Python bytecode at a time.
How to install python
To install Python, follow these
steps:
1. Download Python:
o Go to the official Python website.
o Navigate to the Downloads section
and click on Download Python for
Windows.
2. Run the Installer:
o Open the downloaded installer file.
o Check the box Add Python to
PATH.
o Click on Install Now and follow the
prompts.
3. Verify Installation:
o Open Command Prompt.
Type python --version and press
o

Enter to check the installed version.


Basic python commands
1. Print statement:
print ("Hello, world!")
output: Hello, world!

2. Variable assignment:
x = 10
y = 3.14
name = "Alice"
 x is an integer, y is a float,
and name is a string
3. For Loop:
for i in range (5):
print(i)
Output: 0 1 2 3 4

You might also like