Python is a versatile programming language created by Guido van Rossum in 1989. It can be used for web applications, data analysis, artificial intelligence, and more. Python code is often more concise and readable than other languages like C++ and Java due to its simple syntax and dynamic typing. It is an interpreted, object-oriented language with a large standard library and strong support for multiple programming paradigms.
Introduction to Python
What is Python?
Python is a high-level, interpreted programming language known for its simplicity and readability. It was created by Guido van Rossum and first released in 1991. Python emphasizes code readability with its clean and straightforward syntax, making it an excellent choice for beginners and experienced developers alike.
Features of Python:
Simple and Easy to Learn: Python's syntax is designed to be intuitive and readable, making it easy for beginners to grasp.
Interpreted: Python code is executed line by line by the Python interpreter, which means you can run Python code without the need for compilation.
High-Level: Python abstracts low-level details, allowing developers to focus on solving problems rather than dealing with system-level intricacies.
Dynamic Typing: Python uses dynamic typing, meaning you don't need to declare variable types explicitly. Variables can dynamically change types during execution.
Multi-paradigm: Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
Extensive Standard Library: Python comes with a vast standard library that provides support for various tasks like file I/O, networking, and more, making it highly versatile.
Portability: Python is available on various platforms, including Windows, macOS, and Linux, making it highly portable.
Community and Ecosystem: Python has a large and active community, contributing to a rich ecosystem of libraries and frameworks for various domains, such as web development, data science, machine learning, and more.
Use Cases of Python:
Web Development: With frameworks like Django and Flask, Python is widely used for building web applications.
Data Science: Python's rich ecosystem of libraries such as NumPy, Pandas, and Matplotlib makes it a popular choice for data analysis and visualization.
Machine Learning and AI: Libraries like TensorFlow, PyTorch, and scikit-learn enable developers to build machine learning models and AI applications efficiently.
Scripting: Python's simplicity and versatility make it ideal for writing scripts for automation, system administration, and more.
Game Development: Python is used in game development, both for writing game logic and scripting within game engines like Unity.
Installing Python:
To get started with Python, you need to install it on your system. You can download Python from the official website python.org and follow the installation instructions for your operating system.
Hello, World! Example:
Let's start with the traditional "Hello, World!" program in Python:
python
Copy code
print("Hello, World!")
This simple program prints "Hello, World!" to the console. It's a common starting point for learning any programming language.
POWERED BY -- teachersduniya.com
This is the based on python programming language which is the very power full language . you can also learn whole about overview python.
Why Python has become a popular programming language for Software Development...Integrated IT Solutions
Python is one of the languages that continue to rise in popularity every year. Python has become the world's fastest-growing programming language. It's also recognized among the most advanced machine learning programming languages. So, why is Python becoming so popular First, we must understand Python.
Technology is evolving day by day. This has led to the gradual development of Smartphones, Artificial Intelligence, Supercomputers, etc. Then, to use this technology, we developed various programs and applications that will be used in programming languages. One of the most popular languages is Python.
Mastering the Interview: 50 Common Interview Questions DemystifiedMalcolmDupri
Embark on your journey into the world of programming with this comprehensive introduction to Python. Whether you're a beginner eager to learn your first programming language or an experienced developer seeking to expand your skill set, this Slide Share presentation is the perfect starting point. From the basics of syntax and data types to more advanced concepts like functions and modules, we'll guide you through the fundamentals of Python programming in an accessible and engaging manner. By the end of this presentation, you'll have a solid understanding of Python's capabilities and be well-equipped to tackle a variety of programming challenges.
Introduction to python -easiest way to understand python for beginners
What is Python…?
Differences between programming and scripting language
Programming Paradigms
History of Python
Scope of Python
Why do people use Python?
Installing Python
Introduction to Python
What is Python?
Python is a high-level, interpreted programming language known for its simplicity and readability. It was created by Guido van Rossum and first released in 1991. Python emphasizes code readability with its clean and straightforward syntax, making it an excellent choice for beginners and experienced developers alike.
Features of Python:
Simple and Easy to Learn: Python's syntax is designed to be intuitive and readable, making it easy for beginners to grasp.
Interpreted: Python code is executed line by line by the Python interpreter, which means you can run Python code without the need for compilation.
High-Level: Python abstracts low-level details, allowing developers to focus on solving problems rather than dealing with system-level intricacies.
Dynamic Typing: Python uses dynamic typing, meaning you don't need to declare variable types explicitly. Variables can dynamically change types during execution.
Multi-paradigm: Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
Extensive Standard Library: Python comes with a vast standard library that provides support for various tasks like file I/O, networking, and more, making it highly versatile.
Portability: Python is available on various platforms, including Windows, macOS, and Linux, making it highly portable.
Community and Ecosystem: Python has a large and active community, contributing to a rich ecosystem of libraries and frameworks for various domains, such as web development, data science, machine learning, and more.
Use Cases of Python:
Web Development: With frameworks like Django and Flask, Python is widely used for building web applications.
Data Science: Python's rich ecosystem of libraries such as NumPy, Pandas, and Matplotlib makes it a popular choice for data analysis and visualization.
Machine Learning and AI: Libraries like TensorFlow, PyTorch, and scikit-learn enable developers to build machine learning models and AI applications efficiently.
Scripting: Python's simplicity and versatility make it ideal for writing scripts for automation, system administration, and more.
Game Development: Python is used in game development, both for writing game logic and scripting within game engines like Unity.
Installing Python:
To get started with Python, you need to install it on your system. You can download Python from the official website python.org and follow the installation instructions for your operating system.
Hello, World! Example:
Let's start with the traditional "Hello, World!" program in Python:
python
Copy code
print("Hello, World!")
This simple program prints "Hello, World!" to the console. It's a common starting point for learning any programming language.
POWERED BY -- teachersduniya.com
This is the based on python programming language which is the very power full language . you can also learn whole about overview python.
Why Python has become a popular programming language for Software Development...Integrated IT Solutions
Python is one of the languages that continue to rise in popularity every year. Python has become the world's fastest-growing programming language. It's also recognized among the most advanced machine learning programming languages. So, why is Python becoming so popular First, we must understand Python.
Technology is evolving day by day. This has led to the gradual development of Smartphones, Artificial Intelligence, Supercomputers, etc. Then, to use this technology, we developed various programs and applications that will be used in programming languages. One of the most popular languages is Python.
Mastering the Interview: 50 Common Interview Questions DemystifiedMalcolmDupri
Embark on your journey into the world of programming with this comprehensive introduction to Python. Whether you're a beginner eager to learn your first programming language or an experienced developer seeking to expand your skill set, this Slide Share presentation is the perfect starting point. From the basics of syntax and data types to more advanced concepts like functions and modules, we'll guide you through the fundamentals of Python programming in an accessible and engaging manner. By the end of this presentation, you'll have a solid understanding of Python's capabilities and be well-equipped to tackle a variety of programming challenges.
Introduction to python -easiest way to understand python for beginners
What is Python…?
Differences between programming and scripting language
Programming Paradigms
History of Python
Scope of Python
Why do people use Python?
Installing Python
Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library.
A slightly modified version of original "An introduction to Python
for absolute beginners" slides. For credits please check the second page. I used this presentation for my school's internal Python course. thank you forviewing
Python mobile app development aids in the creation of music and other types of video and audio applications. Python can be used to analyze audio and video content on the internet, which is abundant. Some Python libraries, such as PyDub and OpenCV, also help with the successful completion of app development.
Types of Applications That Can Be Built Using The Python App Development Fram...Moon Technolabs Pvt. Ltd.
Python app development is an advanced and standard programming language that supports structured programming. Let’s talk about apps that are built-in Python app development.
python Certification Training in marthahalliMUDDUKRISHNA14
AchieversIT - Provides a wide group of opportunities for freshers and Experienced candidate who can develop their skills and build their career opportunities across multiple Companies.
Migration of Applications to Python is the most prudent DecisionMindfire LLC
Python is one of the top 10 most popular programming languages of 2021, according to the latest PYPL Index. It’s a no-brainer that if you want your software to perform better in the long run- Python is the best choice. If you use a different language for your applications, you can consider moving your applications to Python.
This slide is very useful for python beginners.Python training in Chennai at Credo Systemz helps you to get an extensive knowledge of Python programming language. Python course training by Credo Systemz is an instructor-led training conducted in Chennai premises.
As you make your way through your programming career, there will come a time when you need to choose between multiple languages to use. Whether you’re doing data science, web development, or something else entirely, you’ll likely need to use Python at some point. Python is one of the most widely used programming languages today because it is simple to learn and enjoyable to use. In this guide, we’ll cover everything you need to know about Python, from basic usage to advanced concepts, so that you can hit the ground running with this powerful language!
Python is a popular high-level programming language. It's easy to learn, versatile, and super powerful. Python was created by Guido van Rossum in 1991 and first released in 1992; it has become one of the most popular languages for general-purpose programming on small and large scales. It is used by Google, YouTube, and other tech giants and offshore companies like BJIT. Thanks to its simplicity, Python has gained a huge following among software developers. It can be used for anything from backend web development to machine learning programs right up to desktop applications!
This presentation discuss about Python language. It is very helpful for beginners who want to learn Python language.
About Python, Python developer, Python release, Methodology support, OS support, License, file extension, Features of Python, Applications of Python.
Python and Its fascinating applications in the real world.pdfSkilloVilla
The popularity of Python and its applications in various domains are advancing at an incredible rate. With the courses offered by SkilloVilla such as Python For Data Science, Data Analytics, and Statistics Using Python, and Machine Learning using Python, you can learn to code like a pro in just a few weeks.
Excellence Technology provide different type of courses. Python training course in Mohali most trending and best for the students to develop and improve their knowledge and skill . These course provide are most affordable price and highest quality of education. Students who are capable can get the internship or training in Mohali . Along with100% Practical training on real-time projects, we have the faculty member who is highly skilled and have at least 8-10 years of experience.
Build Real-World Mobile Applications With Python App Development Services Com...Cerebrum Infotech
Cerebrum Infotech offered the best Python app development services to our clients, it's a largely flexible language with numerous libraries and tools available. Please see our website for more information!
9 good reasons why you must consider python for web applications SnehaDas60
Many coding languages can qualify for the creation of a great product. But which should you choose among them?
As we all know, Python is one of the most popular programming languages of this era. You can use it for both-for building GUI desktops and web applications.
Here in this blog, I have described some of the top reasons you should consider Python for your next web application. Let's read....
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library.
A slightly modified version of original "An introduction to Python
for absolute beginners" slides. For credits please check the second page. I used this presentation for my school's internal Python course. thank you forviewing
Python mobile app development aids in the creation of music and other types of video and audio applications. Python can be used to analyze audio and video content on the internet, which is abundant. Some Python libraries, such as PyDub and OpenCV, also help with the successful completion of app development.
Types of Applications That Can Be Built Using The Python App Development Fram...Moon Technolabs Pvt. Ltd.
Python app development is an advanced and standard programming language that supports structured programming. Let’s talk about apps that are built-in Python app development.
python Certification Training in marthahalliMUDDUKRISHNA14
AchieversIT - Provides a wide group of opportunities for freshers and Experienced candidate who can develop their skills and build their career opportunities across multiple Companies.
Migration of Applications to Python is the most prudent DecisionMindfire LLC
Python is one of the top 10 most popular programming languages of 2021, according to the latest PYPL Index. It’s a no-brainer that if you want your software to perform better in the long run- Python is the best choice. If you use a different language for your applications, you can consider moving your applications to Python.
This slide is very useful for python beginners.Python training in Chennai at Credo Systemz helps you to get an extensive knowledge of Python programming language. Python course training by Credo Systemz is an instructor-led training conducted in Chennai premises.
As you make your way through your programming career, there will come a time when you need to choose between multiple languages to use. Whether you’re doing data science, web development, or something else entirely, you’ll likely need to use Python at some point. Python is one of the most widely used programming languages today because it is simple to learn and enjoyable to use. In this guide, we’ll cover everything you need to know about Python, from basic usage to advanced concepts, so that you can hit the ground running with this powerful language!
Python is a popular high-level programming language. It's easy to learn, versatile, and super powerful. Python was created by Guido van Rossum in 1991 and first released in 1992; it has become one of the most popular languages for general-purpose programming on small and large scales. It is used by Google, YouTube, and other tech giants and offshore companies like BJIT. Thanks to its simplicity, Python has gained a huge following among software developers. It can be used for anything from backend web development to machine learning programs right up to desktop applications!
This presentation discuss about Python language. It is very helpful for beginners who want to learn Python language.
About Python, Python developer, Python release, Methodology support, OS support, License, file extension, Features of Python, Applications of Python.
Python and Its fascinating applications in the real world.pdfSkilloVilla
The popularity of Python and its applications in various domains are advancing at an incredible rate. With the courses offered by SkilloVilla such as Python For Data Science, Data Analytics, and Statistics Using Python, and Machine Learning using Python, you can learn to code like a pro in just a few weeks.
Excellence Technology provide different type of courses. Python training course in Mohali most trending and best for the students to develop and improve their knowledge and skill . These course provide are most affordable price and highest quality of education. Students who are capable can get the internship or training in Mohali . Along with100% Practical training on real-time projects, we have the faculty member who is highly skilled and have at least 8-10 years of experience.
Build Real-World Mobile Applications With Python App Development Services Com...Cerebrum Infotech
Cerebrum Infotech offered the best Python app development services to our clients, it's a largely flexible language with numerous libraries and tools available. Please see our website for more information!
9 good reasons why you must consider python for web applications SnehaDas60
Many coding languages can qualify for the creation of a great product. But which should you choose among them?
As we all know, Python is one of the most popular programming languages of this era. You can use it for both-for building GUI desktops and web applications.
Here in this blog, I have described some of the top reasons you should consider Python for your next web application. Let's read....
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
2. Today’s Agenda
An Introduction to Python
• Necessity Of Programming
• What Is Python ?
• Why And Who Created It ?
• What Python Can Do ?
• Why Should I Learn Python ?
• Important Features
3. Why Do We Need Programming ?
• To communicate with digital machines and make them
work accordingly
• Today in the programming world , we have more than
850 languages available.
• And every language is designed to fulfill a particular
kind of requirement
4. Brief History Of Prog. Lang
C language was primarily designed to develop “System
Softwares” like Operating Systems, Device Drivers etc .
To remove security problems with “C” language , C++
language was designed.
It is an Object Oriented Language which provides data
security and can be used to solve real world problems.
Many popular softwares like Adobe Acrobat , Winamp Media
Player,Internet Explorer,Mozilla Firefox etc were designed in
C++
5. What is Python ?
Python is a general purpose and powerful
programming language.
Python is considered as one of the most versatile
programming language as it can be used to develop
almost any kind of application including desktop
application , web applications , mobile
application , network programming , image
processing and many more.
6. Who created Python ?
Developed by Guido van
Rossum , a Dutch scientist
Created at Center For
Mathematics and
Research , Netherland
It is inspired by another
programming language
called ABC
7. Why was Python
created ?
Guido started Python
development as a hobby in
1989
But since then it has grown to
become one of the most
polished languages of the
computing world.
8. How Python got
it’s name?
The name Python is inspired
from Guido’s favorite
Comedy TV show called
“Monty Python’s Flying
Circus”
Guido wanted a name that
was short, unique, and
slightly mysterious, so he
decided to call the language
Python.
9. Who manages Python
today ?
From version 2.1 onwards ,
Python is managed by
Python Software
Foundation situated in
Delaware , USA
It is a non-profit
organization devoted to the
growth and enhancement of
Python language
Their website is
http://www.python.org
10. What Python can do ?
GUI Application
Web Application
Data Analysis
AI & ML
Raspberry Pi
Hacking
11. GUI In Python
Python is used for GUI
apps all the time.
It has famous libraries
like PyQT , Tkinter to
build desktop apps.
13. Famous Websites Developed
Using Python
There are numerous examples of popular, high-
load websites/webapps that have been developed
using Python.
Here are some of the most popular of them:
NASA
Instagram
Mozilla
Spotify
Reddit
Dropbox
And above all YouTube
14. Web Application
In Python
There are many
excellent Python
frameworks like
Django, Flask for web
application
development
15. Data Analysis In Python
Data Analysis is about
making predictions
with data
16. Some Examples
How do you think Super
Market stores decide
what products to keep in
stock?
What are the items they
should club together to
make a combo?
How it happens ?
Answer: Data analytics
17. Some Examples
Have you noticed that
every time you log on to
Google, Facebook and
see ads, they are based
on your preferences ?
How it happens ?
Answer: Data analytics
18. Data Analysis In Python
Python is the leading
language of choice for
many data scientists
It has grown in
popularity due to it’s
excellent libraries like
Numpy , Pandas etc
19. AI & ML
In Python
Machine learning is a field
of AI (Artificial
Intelligence) by using
which software
applications can learn to
increase their accuracy for
the expecting outcomes.
It is heavily used in Face
recognition , music
recommendation ,
medical data etc
Python has many wonderful
libraries to implement ML
algos like SciKit-Learn ,
Tensorflow etc
20. Raspberry Pi
In Python
The Raspberry Pi is a
low cost, credit-card
sized computer that
plugs into a computer
monitor or TV, and
uses a standard
keyboard and mouse.
It can do almost
everything a normal
desktop can do
21. Raspberry Pi
In Python
We can build Home
Automation System
and even robots using
Raspberry-Pi
The coding on a
Raspberry Pi can be
performed using
Python
22. Hacking In Python
Python has gained
popularity as
preferred language for
hacking.
Hackers generally
develop small scripts
and Python provides
amazing performance
for small programs
23. Why should
I learn Python ?
3rd most popular programming
Fastest growing language
Opens lots of doors
Big corporate prefer Python
Means , PYTHON IS THE
FUTURE
25. Features Of Python
Simple
Dynamically Typed
Robust
Supports multiple programming paradigms
Compiled as well as Interpreted
Cross Platform
Extensible
Huge Library
26. Simple
Python is very simple
As compared to other popular languages like Java and
C++, it is easier to code in Python.
Python code is comparatively 3 to 5 times smaller than
C/C++/Java code
27. Print Hello Bhopal!
IN C
#include <stdio.h>
int main(){
printf("Hello Bhopal!");
return 0;
}
IN JAVA
public class HelloWorld{
public static void main( String[] args ) {
System.out.println( "Hello Bhopal!" );
}
}
IN PYTHON
print('Hello Bhopal!')
28. Add 2 Nos
IN C
#include <stdio.h>
int main(){
int a=10,b=20;
printf(“Sum is %d”,a+b);
return 0;
}
IN JAVA
public class HelloWorld{
public static void main( String[] args ) {
int a=10,b=20;
System.out.println( “Sum is “+(a+b));
}
}
IN PYTHON
a,b=10,20
print(“Sum is”,a+b)
29. Swap 2 Nos
IN C
int a=10,b=20,temp;
temp=a;
a=b;
b=temp;
IN JAVA
int a=10,b=20,temp;
temp=a;
a=b;
b=temp;
IN PYTHON
a,b=10,20
a,b=b,a
32. Robust
Python has very strict rules which every program must
compulsorily follow and if these rules are violated then Python
terminates the code by generating “Exception”
To understand python’s robustness , guess the output of the
following /C++ code:
int arr[5];
int i;
for(i=0;i<=9;i++)
{
arr[i]=i+1;
}
33. Robust
In Python if we write the same code then it will generate
Exception terminating the code
Due to this other running programs on the computer do
not get affected and the system remains safe and secure
34. Supports Multiple
Programming Paradigms
Python supports both procedure-oriented and object-
oriented programming which is one of the key python
features.
In procedure-oriented languages, the program is built
around procedures or functions which are nothing but
reusable pieces of programs.
In object-oriented languages, the program is built
around objects which combine data and functionality
35. Compiled
As Well As Interpreted
Python uses both a compiler as well as interpreter for
converting our source and running it
However , the compilation part is hidden from the
programmer ,so mostly people say it is an interpreted
language
36. Cross Platform
Let’s assume we’ve written a Python code for our
Windows machine.
Now, if we want to run it on a Mac, we don’t need to make
changes to it for the same.
In other words, we can take one code and run it on any
machine, there is no need to write different code for
different machines.
This makes Python a cross platform language
37. Extensible
Python allows us to call C/C++/Java code from a
Python code and thus we say it is an extensible language
We generally use this feature when we need a critical piece
of code to run very fast .
So we can code that part of our program in C or C++ and
then use it from our Python program.
38. Huge Library
The Python Standard Library is huge indeed.
It can help you do various things like Database
Programming , E-mailing ,GUI Programming etc