This document provides an overview of the Python programming language. It begins by explaining what Python is - a general purpose, interpreted programming language that can be used as both a programming and scripting language. It then discusses the differences between programs and scripting languages. The history and creator of Python, Guido van Rossum, are outlined. The document explores the scope of Python and what tasks it can be used for. Popular companies and industries that use Python today are listed. Reasons why people use Python, such as it being free, powerful, and portable, are provided. Instructions for installing Python and running Python code are included. The document covers Python code execution and introduces basic Python concepts like variables, strings, data types, lists
This document provides an overview of the Python programming language. It begins by explaining what Python is, noting that it is a general purpose programming language that is often used for scripting. The key differences between program and scripting languages are then outlined. The history and creation of Python by Guido van Rossum are summarized, along with Python's scope in fields like science, system administration, and web development. Various uses of Python are listed, followed by who commonly uses Python today such as Google and YouTube. Reasons for Python's popularity include being free, powerful, and portable. The document concludes by covering installing Python, running and executing Python code, and some basic Python concepts like strings, variables, data types, and loops/
Python is a general purpose programming language that can be used for web development, system administration, science and more. It is interpreted rather than compiled, and was created in the 1990s by Guido van Rossum to be highly readable. Python is widely used by companies like Google, YouTube, Intel and more due to its power, flexibility and readability. It supports key programming concepts like variables, conditionals, loops, lists, tuples and more.
Python is a general purpose programming language that can be used for both programming and scripting. It was created in the 1990s by Guido van Rossum. Python is an interpreted language that is free, powerful, and portable. It can be used for tasks like web development, data analysis, and system scripting. The document provides an overview of Python including its history, uses, data types like strings and lists, and basic programming concepts like variables, conditionals, and loops. It recommends Python as a principal teaching language due to its free and easy installation, flexibility, use in academia and industry, and ability to offer a more rapid and enjoyable learning experience for students.
Python tutorial for beginners - Tib academyTIB Academy
Get python training through simple tutorial from TIB Academy, through this python tutorial you can lean more topics of python. you can download python tutorial free as PPT
Python is a general purpose programming language that can be used for both programming and scripting. It was created in the 1990s by Guido van Rossum to address the need for a higher level language in the Amoeba operating system project. Python is widely used today for web development, science, system administration, and more due to its readability, object orientation, powerful libraries, and portability across operating systems. To use Python, one installs an IDE like Python 2.7 and then writes and runs code either in the Python command line or IDE.
Python is a general purpose programming language that can be used for both programming and scripting. It was created in the 1990s by Guido van Rossum who named it after the Monty Python comedy troupe. People use Python for a variety of tasks due to its readability, object-oriented capabilities, extensive libraries, and ability to integrate with other languages. To run Python code, it must first be compiled into bytecode which is then interpreted by the Python virtual machine.
Python is a widely used programming language that offers several unique features and advantages compared to languages like Java and C++. Our Python tutorial thoroughly explains Python basics and advanced concepts, starting with installation, conditional statements, loops, built-in data structures, Object-Oriented Programming, Generators, Exception Handling, Python RegEx, and many other concepts. This tutorial is designed for beginners and working professionals.
Python is a general purpose programming language that can be used for both programming and scripting. It was created in the late 1980s by Guido van Rossum to address the limitations of other languages at the time. Python code is first compiled to bytecode, which is then executed by the Python Virtual Machine. It is an easy to use, powerful, and portable language employed by many major companies for web development, system administration, science, and more.
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.
This document provides an overview of the Python programming language, including its history, uses, and key features. It discusses how Python is both a programming language and a scripting language. The document also covers installing Python, examples of companies that use Python, a sample Python code, and how to execute Python code.
Python is a popular programming language created by Guido van Rossum in 1991. It is easy to use, powerful, and versatile, making it suitable for beginners and experts alike. Python code can be written and executed in the browser using Google Colab, which provides a Jupyter notebook environment and access to computing resources like GPUs. The document then discusses installing Python using Anaconda, basic Python concepts like indentation, variables, strings, conditionals, and loops.
در این جلسه از کلاس در خصوص تاریخچه پایتون و زبان پایتون صحبت شد
PySec101 Fall 2013 J1E1 By Mohammad Reza Kamalifard
Talk about : Python History and Python language Essentials.
This document discusses training on Python that was conducted over six weeks by Cetpa Infotech Pvt. Ltd. It covers topics like what Python is, the differences between programs and scripting languages, Python's history and uses. It also discusses installing Python IDEs and provides examples of Python code, variables, data types, strings, lists, tuples, and control flow statements. The conclusion is that Python is a good teaching language due to being free, easy to install, and flexible for both procedural and object-oriented programming.
- Python is a programming language created by Guido van Rossum in 1991. It has two major versions: Python 2.0 released in 2000 and Python 3.0 released in 2008. Python 3.0 is the latest version and is not completely backward compatible with Python 2.0.
- Python is used for machine learning, data science, web development, game development, and more. Popular frameworks include TensorFlow, Pandas, Django, and PyGame.
- The document discusses installing Python, different integrated development environments (IDEs) like PyCharm and Visual Studio Code, and covers basic Python concepts like data types, variables, operators, and more.
This document provides an introduction to the Python programming language. It discusses that Python was created in 1985, is an interpreted, object-oriented scripting language. It then covers Python's key features like being easy to learn and use, supporting multiple programming paradigms, and having a large standard library. The document also discusses installing Python on Linux and Windows systems and provides examples to test a Python installation.
1) The document recaps Day 1 of the 30 Days Master Class on Data Science 2.0 which covered introductions, the course agenda, and applications of data science.
2) It then discusses why Python is well-suited for data science due to its ease of use and development, provides a brief history of Python, and outlines how to install Python.
3) The document introduces key Python concepts like interpreters, compilers, and different execution modes before demonstrating basic programming structures like conditional statements and loops.
Interpreter v/s Compiler summarizes the key differences between interpreters and compilers. Interpreters translate programs one statement at a time with no object code generated, making them more memory efficient. Compilers scan entire programs and translate them into machine code at once, generating object code and requiring more memory but providing faster overall execution time. Popular languages like JavaScript, Python, and Ruby use interpreters while C, C++, and Java use compilers.
The document compares interpreters and compilers. It states that interpreters translate code line-by-line while compilers scan the entire program at once. Interpreters have faster analysis time but slower overall execution, while compilers have slower analysis but faster execution. Interpreters do not generate object code so are more memory efficient. Languages like JavaScript, Python and Ruby use interpreters, while C, C++ and Java use compilers.
The document provides an introduction to Python programming, including:
- Describing Python's features like being high-level, powerful, easy to use, and platform independent.
- Explaining how to set up Python on different operating systems and introduce IDLE as the integrated development environment.
- Demonstrating how to write Python programs in both interactive and script mode using basic constructs like print statements, variables, strings, numbers, comments and more.
Join the Denver Marketo User Group, Captello and Integrate as we dive into the best practices, tools, and strategies for maintaining robust, high-performing databases. From managing vendors and automating orchestrations to enriching data for better insights, this session will unpack the key elements that keep your data ecosystem running smoothly—and smartly.
We will hear from Steve Armenti, Twelfth, and Aaron Karpaty, Captello, and Frannie Danzinger, Integrate.
More Related Content
Similar to Python programming notes all in one python ppt (20)
Python is a widely used programming language that offers several unique features and advantages compared to languages like Java and C++. Our Python tutorial thoroughly explains Python basics and advanced concepts, starting with installation, conditional statements, loops, built-in data structures, Object-Oriented Programming, Generators, Exception Handling, Python RegEx, and many other concepts. This tutorial is designed for beginners and working professionals.
Python is a general purpose programming language that can be used for both programming and scripting. It was created in the late 1980s by Guido van Rossum to address the limitations of other languages at the time. Python code is first compiled to bytecode, which is then executed by the Python Virtual Machine. It is an easy to use, powerful, and portable language employed by many major companies for web development, system administration, science, and more.
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.
This document provides an overview of the Python programming language, including its history, uses, and key features. It discusses how Python is both a programming language and a scripting language. The document also covers installing Python, examples of companies that use Python, a sample Python code, and how to execute Python code.
Python is a popular programming language created by Guido van Rossum in 1991. It is easy to use, powerful, and versatile, making it suitable for beginners and experts alike. Python code can be written and executed in the browser using Google Colab, which provides a Jupyter notebook environment and access to computing resources like GPUs. The document then discusses installing Python using Anaconda, basic Python concepts like indentation, variables, strings, conditionals, and loops.
در این جلسه از کلاس در خصوص تاریخچه پایتون و زبان پایتون صحبت شد
PySec101 Fall 2013 J1E1 By Mohammad Reza Kamalifard
Talk about : Python History and Python language Essentials.
This document discusses training on Python that was conducted over six weeks by Cetpa Infotech Pvt. Ltd. It covers topics like what Python is, the differences between programs and scripting languages, Python's history and uses. It also discusses installing Python IDEs and provides examples of Python code, variables, data types, strings, lists, tuples, and control flow statements. The conclusion is that Python is a good teaching language due to being free, easy to install, and flexible for both procedural and object-oriented programming.
- Python is a programming language created by Guido van Rossum in 1991. It has two major versions: Python 2.0 released in 2000 and Python 3.0 released in 2008. Python 3.0 is the latest version and is not completely backward compatible with Python 2.0.
- Python is used for machine learning, data science, web development, game development, and more. Popular frameworks include TensorFlow, Pandas, Django, and PyGame.
- The document discusses installing Python, different integrated development environments (IDEs) like PyCharm and Visual Studio Code, and covers basic Python concepts like data types, variables, operators, and more.
This document provides an introduction to the Python programming language. It discusses that Python was created in 1985, is an interpreted, object-oriented scripting language. It then covers Python's key features like being easy to learn and use, supporting multiple programming paradigms, and having a large standard library. The document also discusses installing Python on Linux and Windows systems and provides examples to test a Python installation.
1) The document recaps Day 1 of the 30 Days Master Class on Data Science 2.0 which covered introductions, the course agenda, and applications of data science.
2) It then discusses why Python is well-suited for data science due to its ease of use and development, provides a brief history of Python, and outlines how to install Python.
3) The document introduces key Python concepts like interpreters, compilers, and different execution modes before demonstrating basic programming structures like conditional statements and loops.
Interpreter v/s Compiler summarizes the key differences between interpreters and compilers. Interpreters translate programs one statement at a time with no object code generated, making them more memory efficient. Compilers scan entire programs and translate them into machine code at once, generating object code and requiring more memory but providing faster overall execution time. Popular languages like JavaScript, Python, and Ruby use interpreters while C, C++, and Java use compilers.
The document compares interpreters and compilers. It states that interpreters translate code line-by-line while compilers scan the entire program at once. Interpreters have faster analysis time but slower overall execution, while compilers have slower analysis but faster execution. Interpreters do not generate object code so are more memory efficient. Languages like JavaScript, Python and Ruby use interpreters, while C, C++ and Java use compilers.
The document provides an introduction to Python programming, including:
- Describing Python's features like being high-level, powerful, easy to use, and platform independent.
- Explaining how to set up Python on different operating systems and introduce IDLE as the integrated development environment.
- Demonstrating how to write Python programs in both interactive and script mode using basic constructs like print statements, variables, strings, numbers, comments and more.
Join the Denver Marketo User Group, Captello and Integrate as we dive into the best practices, tools, and strategies for maintaining robust, high-performing databases. From managing vendors and automating orchestrations to enriching data for better insights, this session will unpack the key elements that keep your data ecosystem running smoothly—and smartly.
We will hear from Steve Armenti, Twelfth, and Aaron Karpaty, Captello, and Frannie Danzinger, Integrate.
Plooma is a writing platform to plan, write, and shape books your wayPlooma
Plooma is your all in one writing companion, designed to support authors at every twist and turn of the book creation journey. Whether you're sketching out your story's blueprint, breathing life into characters, or crafting chapters, Plooma provides a seamless space to organize all your ideas and materials without the overwhelm. Its intuitive interface makes building rich narratives and immersive worlds feel effortless.
Packed with powerful story and character organization tools, Plooma lets you track character development and manage world building details with ease. When it’s time to write, the distraction-free mode offers a clean, minimal environment to help you dive deep and write consistently. Plus, built-in editing tools catch grammar slips and style quirks in real-time, polishing your story so you don’t have to juggle multiple apps.
What really sets Plooma apart is its smart AI assistant - analyzing chapters for continuity, helping you generate character portraits, and flagging inconsistencies to keep your story tight and cohesive. This clever support saves you time and builds confidence, especially during those complex, detail packed projects.
Getting started is simple: outline your story’s structure and key characters with Plooma’s user-friendly planning tools, then write your chapters in the focused editor, using analytics to shape your words. Throughout your journey, Plooma’s AI offers helpful feedback and suggestions, guiding you toward a polished, well-crafted book ready to share with the world.
With Plooma by your side, you get a powerful toolkit that simplifies the creative process, boosts your productivity, and elevates your writing - making the path from idea to finished book smoother, more fun, and totally doable.
Get Started here: https://www.plooma.ink/
Integration Ignited Redefining Event-Driven Architecture at Wix - EventCentricNatan Silnitsky
At Wix, we revolutionized our platform by making integration events the backbone of our 4,000-microservice ecosystem. By abandoning traditional domain events for standardized Protobuf events through Kafka, we created a universal language powering our entire architecture.
We'll share how our "single-aggregate services" approach—where every CUD operation triggers semantic events—transformed scalability and extensibility, driving efficient event choreography, data lake ingestion, and search indexing.
We'll address our challenges: balancing consistency with modularity, managing event overhead, and solving consumer lag issues. Learn how event-based data prefetches dramatically improved performance while preserving the decoupling that makes our platform infinitely extensible.
Key Takeaways:
- How integration events enabled unprecedented scale and extensibility
- Practical strategies for event-based data prefetching that supercharge performance
- Solutions to common event-driven architecture challenges
- When to break conventional architectural rules for specific contexts
How Insurance Policy Administration Streamlines Policy Lifecycle for Agile Op...Insurance Tech Services
A modern Policy Administration System streamlines workflows and integrates with core systems to boost speed, accuracy, and customer satisfaction across the policy lifecycle. Visit https://www.damcogroup.com/insurance/policy-administration-systems for more details!
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...WSO2
Enterprises must deliver intelligent, cloud native applications quickly—without compromising governance or scalability. This session explores how an internal developer platform increases productivity via AI for code and accelerates AI-native app delivery via code for AI. Learn practical techniques for embedding AI in the software lifecycle, automating governance with AI agents, and applying a cell-based architecture for modularity and scalability. Real-world examples and proven patterns will illustrate how to simplify delivery, enhance developer productivity, and drive measurable outcomes.
Learn more: https://wso2.com/choreo
Insurance policy management software transforms complex, manual insurance operations into streamlined, efficient digital workflows, enhancing productivity, accuracy, customer service, and profitability for insurers. Visit https://www.damcogroup.com/insurance/policy-management-software for more details!
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...Alluxio, Inc.
Alluxio Webinar
June 10, 2025
For more Alluxio Events: https://www.alluxio.io/events/
Speaker:
David Zhu (Engineering Manager @ Alluxio)
Storing data as Parquet files on cloud object storage, such as AWS S3, has become prevalent not only for large-scale data lakes but also as lightweight feature stores for training and inference, or as document stores for Retrieval-Augmented Generation (RAG). However, querying petabyte-to-exabyte-scale data lakes directly from S3 remains notoriously slow, with latencies typically ranging from hundreds of milliseconds to several seconds.
In this webinar, David Zhu, Software Engineering Manager at Alluxio, will present the results of a joint collaboration between Alluxio and a leading SaaS and data infrastructure enterprise that explored leveraging Alluxio as a high-performance caching and acceleration layer atop AWS S3 for ultra-fast querying of Parquet files at PB scale.
David will share:
- How Alluxio delivers sub-millisecond Time-to-First-Byte (TTFB) for Parquet queries, comparable to S3 Express One Zone, without requiring specialized hardware, data format changes, or data migration from your existing data lake.
- The architecture that enables Alluxio’s throughput to scale linearly with cluster size, achieving one million queries per second on a modest 50-node deployment, surpassing S3 Express single-account throughput by 50x without latency degradation.
- Specifics on how Alluxio offloads partial Parquet read operations and reduces overhead, enabling direct, ultra-low-latency point queries in hundreds of microseconds and achieving a 1,000x performance gain over traditional S3 querying methods.
Providing Better Biodiversity Through Better DataSafe Software
This session explores how FME is transforming data workflows at Ireland’s National Biodiversity Data Centre (NBDC) by eliminating manual data manipulation, incorporating machine learning, and enhancing overall efficiency. Attendees will gain insight into how NBDC is using FME to document and understand internal processes, make decision-making fully transparent, and shine a light on underlying code to improve clarity and reduce silent failures.
The presentation will also outline NBDC’s future plans for FME, including empowering staff to access and query data independently, without relying on external consultants. It will also showcase ambitions to connect to new data sources, unlock the full potential of its valuable datasets, create living atlases, and place its valuable data directly into the hands of decision-makers across Ireland—ensuring that biodiversity is not only protected but actively enhanced.
The Future of Open Source Reporting Best Alternatives to Jaspersoft.pdfVarsha Nayak
In recent years, organizations have increasingly sought robust open source alternative to Jasper Reports as the landscape of open-source reporting tools rapidly evolves. While Jaspersoft has been a longstanding choice for generating complex business intelligence and analytics reports, factors such as licensing changes and growing demands for flexibility have prompted many businesses to explore other options. Among the most notable alternatives to Jaspersoft, Helical Insight stands out for its powerful open-source architecture, intuitive analytics, and dynamic dashboard capabilities. Designed to be both flexible and budget-friendly, Helical Insight empowers users with advanced features—such as in-memory reporting, extensive data source integration, and customizable visualizations—making it an ideal solution for organizations seeking a modern, scalable reporting platform. This article explores the future of open-source reporting and highlights why Helical Insight and other emerging tools are redefining the standards for business intelligence solutions.
Best Inbound Call Tracking Software for Small BusinessesTheTelephony
The best inbound call tracking software for small businesses offers features like call recording, real-time analytics, lead attribution, and CRM integration. It helps track marketing campaign performance, improve customer service, and manage leads efficiently. Look for solutions with user-friendly dashboards, customizable reporting, and scalable pricing plans tailored for small teams. Choosing the right tool can significantly enhance communication and boost overall business growth.
From Chaos to Clarity - Designing (AI-Ready) APIs with APIOps CyclesMarjukka Niinioja
Teams delivering API are challenges with:
- Connecting APIs to business strategy
- Measuring API success (audit & lifecycle metrics)
- Partner/Ecosystem onboarding
- Consistent documentation, security, and publishing
🧠 The big takeaway?
Many teams can build APIs. But few connect them to value, visibility, and long-term improvement.
That’s why the APIOps Cycles method helps teams:
📍 Start where the pain is (one “metro station” at a time)
📈 Scale success across strategy, platform, and operations
🛠 Use collaborative canvases to get buy-in and visibility
Want to try it and learn more?
- Follow APIOps Cycles in LinkedIn
- Visit the www.apiopscycles.com site
- Subscribe to email list
-
FME for Climate Data: Turning Big Data into Actionable InsightsSafe Software
Regional and local governments aim to provide essential services for stormwater management systems. However, rapid urbanization and the increasing impacts of climate change are putting growing pressure on these governments to identify stormwater needs and develop effective plans. To address these challenges, GHD developed an FME solution to process over 20 years of rainfall data from rain gauges and USGS radar datasets. This solution extracts, organizes, and analyzes Next Generation Weather Radar (NEXRAD) big data, validates it with other data sources, and produces Intensity Duration Frequency (IDF) curves and future climate projections tailored to local needs. This presentation will showcase how FME can be leveraged to manage big data and prioritize infrastructure investments.
Automating Map Production With FME and PythonSafe Software
People still love a good paper map, but every time a request lands on a GIS team’s desk, it takes time to create that perfect, individual map—even when you're ready and have projects prepped. Then come the inevitable changes and iterations that add even more time to the process. This presentation explores a solution for automating map production using FME and Python. FME handles the setup of variables, leveraging GIS reference layers and parameters to manage details like map orientation, label sizes, and layout elements. Python takes over to export PDF maps for each location and template size, uploading them monthly to ArcGIS Online. The result? Fresh, regularly updated maps, ready for anyone to grab anytime—saving you time, effort, and endless revisions while keeping users happy with up-to-date, accessible maps.
GDG Douglas - Google AI Agents: Your Next Intern?felipeceotto
Presentation done at the GDG Douglas event for June 2025.
A first look at Google's new Agent Development Kit.
Agent Development Kit is a new open-source framework from Google designed to simplify the full stack end-to-end development of agents and multi-agent systems.
Revolutionize Your Insurance Workflow with Claims Management SoftwareInsurance Tech Services
Claims management software enhances efficiency, accuracy, and satisfaction by automating processes, reducing errors, and speeding up transparent claims handling—building trust and cutting costs. Explore More - https://www.damcogroup.com/insurance/claims-management-software
Revolutionize Your Insurance Workflow with Claims Management SoftwareInsurance Tech Services
Ad
Python programming notes all in one python ppt
1. What We Giveyou?
2
• What is Python...?
• Differences between program and scripting language
• History of Python
• Scope of Python
• What can I do with python
• Who uses python today
• Why do people use Python?
• Installing Python IDE
• A Sample Code
• Python code execution
• Running Python
• Python Basic(Variable, Strings, Data types etc.)
2. What is Python ...?
3
• Python is a general purpose programming language that
is often applied in scripting roles.
• So, Python is programming language as
well as scripting language.
• Python is also called as Interpreted language
3. Differences between pr ogram and
scripting language
4
Program
•a program is executed
(i.e. • the
source is first
compiled, • and the
result
of that
compilation is expected)
•A "program" in general,
is a
sequence of
instructions written so
that a computer can
Scripti ng
a script is interpreted
A "script" is code written in a
scripting language. A scripting
language is nothing but a type
of programming language in
which we can write code to
control
another software application.
4. History
Netherlands, early
5
• Invented in
the Rossum
90s by Guido van
• Python was conceived in the late
1980s implementation was started in
December 1989
and its
• Guido Van Rossum is fan of 'Monty Python's
Flying Circus', this is a famous TV show in Netherlands
• Named after Monty Python
• Open sourced from the beginning
5. Python S Benevolent Dictator For Life
6
"Python is an experiment in
much freedom programmers
how
need.
Too much freedom and nobody can
read another's code; too little and
expressiveness is endangered.''
- Guido van Rossum
6. Why was python
created ?
7
"My original motivation for creating Python was
the in
the
perceivedneed for a higher level
Amoeba [Operating Systems] project.
language
Moreover, doing these things in the
wouldn't work for a va riety of reasons. ...
So, there was a need for a
Bourne shell
la
nguage
that
would bridge the gap between C and the shell"
- Guido Va n Rossum
I realized
that
the
development of system
administration utilities in C was taking too long.
7. Scope of Python
8
• Science
- Bioinformatics
• System Administration
-Unix
-Web logic
-Web sphere
• Web Application Development
-CGI
-Jython - Servlets
• Testing scripts
8. What can I do with Python ...?
9
• Systetn progratntning
• Graphical User Interface Progratntning
• Internet Scripting
• Cotnponent Integration
• Database Progratntning
• Gatning, Itnages, XML , Robot and tnore
9. Who usespython today ...
10
• Python
is
being applied in real revenue-generating products
by real companies. For instance:
•Google makes extensive use of Python in
its web search system, and employs Python's
creator.
•Intel, Cisco, Hewlett-Packard, Seagate, Qualcomm,
and IBM use Python for hardware testing.
•ESRI uses Python as an end-user
customization tool for its popular GIS mapping
products.
•The YouTube video sharing service is
largely written in Python
10. Why dopeople use Python ...?
11
The following primary factors cited by Python users
seem to be these:
•Python is object-oriented
Structure supports such concepts as polymorphism,
operation overloading, and multiple inheritance.
•It's free (open source)
Downloadingand installing Python is free and easy
Source code is easily accessible
11. • It's powerful
- Dynamic typing
- Built-in types and tools
- Library utilities
- Third party utilities (e.g. Numeric, NumPy, SciPy)
- Automatic memory management
• It's portable
- Python runs virtually every major platform used today
- As long as you have a compatible Python interpreter
installed, Python programs will run in exactly the
same manner, irrespective of platform.
12
12. Insta lling Python
13
• Python is pre-installed on most Unix systems,including Linux and
MAC OS X
• But for in Windows Operating Systems , user can download
from the
https ://www.python.org/downloads/
- from the above link download latest version of python IDE
and install, recent version is 3.4.1 but most of them uses
version 2.7.7 only
13. • After installing the
Python Ver#2.7.7, go to
start menu then click on
14
python 2.7 in that one
you can select
.
(command line) it IS
prompt with >>>
python
iTunes Lenovo Maintena nce
Memeo
Microsoft Off ice Microsoft
Silverlight MyPC Backu p
Notepad+ +
ooVoo PriceMcter
Privacy SafeGuard Protected
Search Python 2.7
i' IDLE (Python GUI)
i' Mod ule Docs
P' PythonCcom_m_a_nd
line)
Python Ma nuals Uninstall
Python
Resolver 2.2 Skype
SmilcysWeLove for IE
Bac
k
15. Running Python
16
Once you're inside the Python interpreter, type in commands at will.
•Examples:
>>> print 'Hello world' Hello world
16. Python Code Execution
17
• Python's traditional runtime execution model: source code
you type is translated to byte code, which is then run by the
Python Virtual Machine. Your code is automatically
compiled, but then it is interpreted.
Sour
ce
Byte
code
Runtim
e
.....-..
PVM
,--
-
... ..
. ....
,,
I I
t
.....-..
'
·
I '
'
I'
I
I
#
.
.
,
.
.
,
---
---
...
m.py
Source code extension is .py
Byte code extension is .pyc (compiled python code)
18. Math
19
Try typing this into Code:
>>> print 3 + 12
15
>>> print 12 - 3
9
>>> print 9 + 5 - 15 + 12
11
Operators: add: + subtract: -
Note: don't type the arrows >>> !
19. Math
Rule: If you want Python to answer in floats, you have to talk
to it in floats.
20
More operators:
divide: I
multiply: *
>>> print 3 * 12 36
>>> print 12 I 3 4
>>> print 11 I 3 3
>>> print 12.0 I 3.0 4.0
>>> print 11.0 I 3.0 3.66
27. Data Type:
28
Python has many native data types. Here are the important ones:
Booleans are either True or False.
Numbers can be integers (1 and 2L floats (1.1and 1.2), fractions
(1/2 and 2/3), or even complex numbers.
Strings are sequences of Unicode characters, e.g. an HTML document.
Bytes and byte arrays,e.g. a JPEG image file. Lists are ordered
sequences of values.
Tuples are ordered,immutable sequences of va lues. Sets are
unordered bags of values.
30. List:
31
The list is a most versatile Data type ava ilable in Python which
can be written as a list of comma-sepa rated values (items)
between square brackets. Important thing about a list is that
items in a list need not be of the same type.
Example:
listl = ['physics', 'chemistry', 1997,2000];
list2 = [1, 2,3,4,5 ];