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.
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 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.
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.
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.
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdfSana Khan
This document provides a summary of an audit course on Python taught by Prof. Kannan Moudgalya at IIT Bombay. It contains 6 chapters that cover topics like downloading and installing Python, data types and operators in Python, tuples and lists, loops and conditional statements, and the uses and scope of Python. The course was submitted by Sana Parveen to Moina Mam of the Department of Petroleum Studies at Aligarh Muslim University, Aligarh for the 2022-2023 academic year.
The document provides an introduction and overview of the Python programming language including:
- Its origins and timeline from 1989 to present.
- How it combines functional, imperative and object-oriented paradigms.
- Details on dynamic vs static typing and how Python interprets source code.
- Benefits of its interactive shell, readability, large standard library and thriving community.
- Common uses like scripting, web development, science/engineering tasks, and jobs that utilize Python skills.
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.
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 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.
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.
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.
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdfSana Khan
This document provides a summary of an audit course on Python taught by Prof. Kannan Moudgalya at IIT Bombay. It contains 6 chapters that cover topics like downloading and installing Python, data types and operators in Python, tuples and lists, loops and conditional statements, and the uses and scope of Python. The course was submitted by Sana Parveen to Moina Mam of the Department of Petroleum Studies at Aligarh Muslim University, Aligarh for the 2022-2023 academic year.
The document provides an introduction and overview of the Python programming language including:
- Its origins and timeline from 1989 to present.
- How it combines functional, imperative and object-oriented paradigms.
- Details on dynamic vs static typing and how Python interprets source code.
- Benefits of its interactive shell, readability, large standard library and thriving community.
- Common uses like scripting, web development, science/engineering tasks, and jobs that utilize Python skills.
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.
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.
SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL
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 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.
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfYadavHarshKr
The document discusses Python, including its history, design philosophy, and uses. It began in the late 1980s as a scripting language with emphasis on code readability. Python supports multiple programming paradigms like object-oriented and functional programming. It has a large standard library and interpreters available on many operating systems.
Python is a high-level programming language that emphasizes code readability. It has a clear syntax and large standard library. Python can be used for system programming, GUIs, internet scripting, database programming, and more. Some key strengths of Python include being object-oriented, free, portable, powerful, easy to use and learn. Popular uses of Python include web development, scientific computing, and financial applications. The document provides an overview of Python fundamentals like data types, control flow statements, functions, classes, and modules.
The type of a value refers to the kind of data it represents. In Python, the main types are:
- int - integer numbers like 1, 2, 100
- float - floating point numbers like 1.5, 3.14159
- str - strings, sequences of characters like 'hello'
- bool - boolean values True or False
When you write code, Python assigns a type to each value. The type determines how it can be used and what operations are valid on it. For example, you can add two integers but not add an integer to a string. Checking and understanding types is important for writing correct Python code.
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
This document provides an overview of Python programming concepts across 5 units. Unit 1 introduces Python installation, data types, variables, expressions, statements and functions. It covers integers, floats, Booleans, strings, lists and the basics of writing Python code. Unit 2 discusses control flow statements like conditionals and loops. Unit 3 covers functions, strings, arrays and lists in more detail. Unit 4 focuses on lists, tuples, dictionaries and their methods. Unit 5 discusses files, exceptions, modules and packages in Python.
This document describes building a basic calculator program in Python. It takes user input to select an arithmetic operation (add, subtract, multiply, divide) and two numbers. If/elif/else statements direct the program to call functions to perform the selected operation and display the result. While basic, this provides a starting point to create a more advanced calculator with additional features.
PowerPoint allows users to import various 3D model formats from files, the cloud, or a network. To insert a 3D model, select "Insert > 3D Models from a File..." which will open a window to search for and select a 3D file to insert. Users can then position and rotate the 3D model using the 3D control or selecting different view options. The pan and zoom tool also allows resizing or cropping the 3D model within a frame.
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.
This tutorial provides an introduction to the Python programming language. It will cover Python's core features like syntax, data types, operators, conditional and loop execution, functions, modules and packages to enable writing basic programs. The tutorial is intended for learners to learn Python together through questions, discussions and pointing out mistakes.
This document provides an introduction to the Python programming language. It discusses why Python is easy to learn, relatively fast, object-oriented, strongly typed, widely used and portable. It then provides instructions on getting started with Python on Mac, including how to start the Python interpreter and run a simple "Hello World" program. It also demonstrates using the Python interpreter interactively to test code. The document explains the basic Python object types of numbers, strings, lists, tuples, dictionaries and files. It introduces the concepts of literals, variables and the import command. It provides examples of using command line arguments in Python programs.
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.
Here are the programs for the assignments:
1.
name = "John"
print(name)
2.
x = 5
y = 10
z = 15
print(x, y, z)
3.
mood = "happy"
strength = 80.5
rank = 1
Ever been troubled by the blinking sign and didn’t know what to do?
Here’s a handy guide to dashboard symbols so that you’ll never be confused again!
Save them for later and save the trouble!
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.
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.
SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL
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 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.
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfYadavHarshKr
The document discusses Python, including its history, design philosophy, and uses. It began in the late 1980s as a scripting language with emphasis on code readability. Python supports multiple programming paradigms like object-oriented and functional programming. It has a large standard library and interpreters available on many operating systems.
Python is a high-level programming language that emphasizes code readability. It has a clear syntax and large standard library. Python can be used for system programming, GUIs, internet scripting, database programming, and more. Some key strengths of Python include being object-oriented, free, portable, powerful, easy to use and learn. Popular uses of Python include web development, scientific computing, and financial applications. The document provides an overview of Python fundamentals like data types, control flow statements, functions, classes, and modules.
The type of a value refers to the kind of data it represents. In Python, the main types are:
- int - integer numbers like 1, 2, 100
- float - floating point numbers like 1.5, 3.14159
- str - strings, sequences of characters like 'hello'
- bool - boolean values True or False
When you write code, Python assigns a type to each value. The type determines how it can be used and what operations are valid on it. For example, you can add two integers but not add an integer to a string. Checking and understanding types is important for writing correct Python code.
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
This document provides an overview of Python programming concepts across 5 units. Unit 1 introduces Python installation, data types, variables, expressions, statements and functions. It covers integers, floats, Booleans, strings, lists and the basics of writing Python code. Unit 2 discusses control flow statements like conditionals and loops. Unit 3 covers functions, strings, arrays and lists in more detail. Unit 4 focuses on lists, tuples, dictionaries and their methods. Unit 5 discusses files, exceptions, modules and packages in Python.
This document describes building a basic calculator program in Python. It takes user input to select an arithmetic operation (add, subtract, multiply, divide) and two numbers. If/elif/else statements direct the program to call functions to perform the selected operation and display the result. While basic, this provides a starting point to create a more advanced calculator with additional features.
PowerPoint allows users to import various 3D model formats from files, the cloud, or a network. To insert a 3D model, select "Insert > 3D Models from a File..." which will open a window to search for and select a 3D file to insert. Users can then position and rotate the 3D model using the 3D control or selecting different view options. The pan and zoom tool also allows resizing or cropping the 3D model within a frame.
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.
This tutorial provides an introduction to the Python programming language. It will cover Python's core features like syntax, data types, operators, conditional and loop execution, functions, modules and packages to enable writing basic programs. The tutorial is intended for learners to learn Python together through questions, discussions and pointing out mistakes.
This document provides an introduction to the Python programming language. It discusses why Python is easy to learn, relatively fast, object-oriented, strongly typed, widely used and portable. It then provides instructions on getting started with Python on Mac, including how to start the Python interpreter and run a simple "Hello World" program. It also demonstrates using the Python interpreter interactively to test code. The document explains the basic Python object types of numbers, strings, lists, tuples, dictionaries and files. It introduces the concepts of literals, variables and the import command. It provides examples of using command line arguments in Python programs.
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.
Here are the programs for the assignments:
1.
name = "John"
print(name)
2.
x = 5
y = 10
z = 15
print(x, y, z)
3.
mood = "happy"
strength = 80.5
rank = 1
Ever been troubled by the blinking sign and didn’t know what to do?
Here’s a handy guide to dashboard symbols so that you’ll never be confused again!
Save them for later and save the trouble!
Expanding Access to Affordable At-Home EV Charging by Vanessa WarheitForth
Vanessa Warheit, Co-Founder of EV Charging for All, gave this presentation at the Forth Addressing The Challenges of Charging at Multi-Family Housing webinar on June 11, 2024.
What Could Be Behind Your Mercedes Sprinter's Power Loss on Uphill RoadsSprinter Gurus
Unlock the secrets behind your Mercedes Sprinter's uphill power loss with our comprehensive presentation. From fuel filter blockages to turbocharger troubles, we uncover the culprits and empower you to reclaim your vehicle's peak performance. Conquer every ascent with confidence and ensure a thrilling journey every time.
Welcome to ASP Cranes, your trusted partner for crane solutions in Raipur, Chhattisgarh! With years of experience and a commitment to excellence, we offer a comprehensive range of crane services tailored to meet your lifting and material handling needs.
At ASP Cranes, we understand the importance of reliable and efficient crane operations in various industries, from construction and manufacturing to logistics and infrastructure development. That's why we strive to deliver top-notch solutions that enhance productivity, safety, and cost-effectiveness for our clients.
Our services include:
Crane Rental: Whether you need a crawler crane for heavy lifting or a hydraulic crane for versatile operations, we have a diverse fleet of well-maintained cranes available for rent. Our rental options are flexible and can be customized to suit your project requirements.
Crane Sales: Looking to invest in a crane for your business? We offer a wide selection of new and used cranes from leading manufacturers, ensuring you find the perfect equipment to match your needs and budget.
Crane Maintenance and Repair: To ensure optimal performance and safety, regular maintenance and timely repairs are essential for cranes. Our team of skilled technicians provides comprehensive maintenance and repair services to keep your equipment running smoothly and minimize downtime.
Crane Operator Training: Proper training is crucial for safe and efficient crane operation. We offer specialized training programs conducted by certified instructors to equip operators with the skills and knowledge they need to handle cranes effectively.
Custom Solutions: We understand that every project is unique, which is why we offer custom crane solutions tailored to your specific requirements. Whether you need modifications, attachments, or specialized equipment, we can design and implement solutions that meet your needs.
At ASP Cranes, customer satisfaction is our top priority. We are dedicated to delivering reliable, cost-effective, and innovative crane solutions that exceed expectations. Contact us today to learn more about our services and how we can support your project in Raipur, Chhattisgarh, and beyond. Let ASP Cranes be your trusted partner for all your crane needs!
EV Charging at MFH Properties by Whitaker JamiesonForth
Whitaker Jamieson, Senior Specialist at Forth, gave this presentation at the Forth Addressing The Challenges of Charging at Multi-Family Housing webinar on June 11, 2024.
Understanding Catalytic Converter Theft:
What is a Catalytic Converter?: Learn about the function of catalytic converters in vehicles and why they are targeted by thieves.
Why are They Stolen?: Discover the valuable metals inside catalytic converters (such as platinum, palladium, and rhodium) that make them attractive to criminals.
Steps to Prevent Catalytic Converter Theft:
Parking Strategies: Tips on where and how to park your vehicle to reduce the risk of theft, such as parking in well-lit areas or secure garages.
Protective Devices: Overview of various anti-theft devices available, including catalytic converter locks, shields, and alarms.
Etching and Marking: The benefits of etching your vehicle’s VIN on the catalytic converter or using a catalytic converter marking kit to make it traceable and less appealing to thieves.
Surveillance and Monitoring: Recommendations for using security cameras and motion-sensor lights to deter thieves.
Statistics and Insights:
Theft Rates by Borough: Analysis of data to determine which borough in NYC experiences the highest rate of catalytic converter thefts.
Recent Trends: Current trends and patterns in catalytic converter thefts to help you stay aware of emerging hotspots and tactics used by thieves.
Benefits of This Presentation:
Awareness: Increase your awareness about catalytic converter theft and its impact on vehicle owners.
Practical Tips: Gain actionable insights and tips to effectively prevent catalytic converter theft.
Local Insights: Understand the specific risks in different NYC boroughs, helping you take targeted preventive measures.
This presentation aims to equip you with the knowledge and tools needed to protect your vehicle from catalytic converter theft, ensuring you are prepared and proactive in safeguarding your property.
Implementing ELDs or Electronic Logging Devices is slowly but surely becoming the norm in fleet management. Why? Well, integrating ELDs and associated connected vehicle solutions like fleet tracking devices lets businesses and their in-house fleet managers reap several benefits. Check out the post below to learn more.
2. What We Give you?
• 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
3. What is Python…?
• 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
4. Differences between program and
scripting language
Program Scripting
• 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 perform certain task.
• 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
5. History
• Invented in the Netherlands, early 90s by Guido van
Rossum
• Python was conceived in the late 1980s and its
implementation was started in December 1989
• 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
6. Python’s Benevolent Dictator For Life
“Python is an experiment in how
much freedom programmers need.
Too much freedom and nobody can
read another's code; too little and
expressiveness is endangered.”
- Guido van Rossum
6
7. Why was python created?
"My original motivation for creating Python was the
perceived need for a higher level language in the
Amoeba [Operating Systems] project.
I realized that the development of system
administration utilities in C was taking too long.
Moreover, doing these things in the Bourne shell
wouldn't work for a variety of reasons. ...
So, there was a need for a language that
would bridge the gap between C and the shell”
- Guido Van Rossum
7
8. Scope of Python
• Science
- Bioinformatics
• System Administration
-Unix
-Web logic
-Web sphere
• Web Application Development
-CGI
-Jython – Servlets
• Testing scripts
8
9. What can I do with Python…?
• System programming
• Graphical User Interface Programming
• Internet Scripting
• Component Integration
• Database Programming
• Gaming, Images, XML , Robot and more
9
10. Who uses python today…
• 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
11. Why do people use Python…?
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)
Downloading and installing Python is free and easy
Source code is easily accessible
11
12. • 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
13. Installing Python
• 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
14. • After installing the
Python Ver#2.7.7, go to
start menu then click on
python 2.7 in that one
you can select python
(command line) it is
prompt with >>>
14
16. Running Python
Once you're inside the Python interpreter, type in commands at will.
• Examples:
>>> print 'Hello world'
Hello world
16
17. Python Code Execution
• 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.
Source code extension is .py
Byte code extension is .pyc (compiled python code)
17
19. Math
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
20. Math
Rule: If you want Python to answer in floats, you have to
talk to it in floats.
More operators:
divide: /
multiply: *
>>> print 3 * 12 36
>>> print 12 / 3 4
>>> print 11 / 3 3
>>> print 12.0 / 3.0 4.0
>>> print 11.0 / 3.0 3.66
20
28. 28
Data Type:
Python has many native data types. Here are the important ones:
Booleans are either True or False.
Numbers can be integers (1 and 2), floats (1.1 and 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 values.
Sets are unordered bags of values.
29. Example:
29
String “Whoop!”
Integer 42
Float 3.14159
List [“John”, “Paul”, “George”, “Ringo”]
Python can tell us about types using the type()
function:
>>> print type(“Whoop!”)
<type ‘str’>
31. 31
List:
The list is a most versatile Data type available in Python
which can be written as a list of comma-separated values
(items) between square brackets. Important thing about a
list is that items in a list need not be of the same type.
Example:
list1 = ['physics', 'chemistry', 1997, 2000];
list2 = [1, 2, 3, 4, 5 ];
32. 32
SN Function with Description
1 cmp(list1, list2) Compares elements of both lists.
2 len(list) Gives the total length of the list.
3 max(list) Returns item from the list with max value.
4 min(list) Returns item from the list with min value.
5 list(seq) Converts a tuple into list.
33. List: a sequence of objects
>>> Beatles = [“John”, “Paul”, “George”,
“Ringo”]
>>> grades = [82, 93, 67, 99, 100]
Guess what this will output:
>>> type(Beatles)
>>> type(grades)
33
34. Lists
Index: Where an item is in the list
>>> Beatles = [“John”, “Paul”, “George”,
“Ringo”]
>>> Beatles[0]
‘John‘
[“John”, “Paul”, “George”, “Ringo”]
0 1 2 3
Python always starts at zero!
34
36. 36
Tuples:
A tuple is a sequence of immutable Python objects. Tuples are
sequences, just like lists. The differences between tuples and
lists are, the tuples cannot be changed unlike lists and tuples
use parentheses, whereas lists use square brackets.
Example:
tup2 = (1, 2, 3, 4, 5 );
tup3 = ("a", "b", "c", "d“);
Accessing Values:
print "tup2[1:5]: “
Output:
tup2[1:5]: [2, 3, 4, 5]
37. 37
Built-in Tuple Functions
Python includes the following tuple functions −
SN Function with Description
1 cmp(tuple1, tuple2) Compares elements of both tuples.
2 len(tuple) Gives the total length of the tuple.
3 max(tuple) Returns item from the tuple with max value.
4 min(tuple) Returns item from the tuple with min value.
5 tuple(seq) Converts a list into tuple.
39. 39
Loop Type Description
while loop Repeats a statement or group of statements
while a given condition is TRUE. It tests the
condition before executing the loop body.
for loop Executes a sequence of statements multiple
times and abbreviates the code that
manages the loop variable.
nested loops You can use one or more loop inside any
another while, for or do..while loop.
40. 40
Statement Description
if statements An if statement consists of a boolean expression
followed by one or more statements.
if...else statements An if statement can be followed by an
optional else statement, which executes when
the boolean expression is FALSE.
nested if statements You can use one if or else if statement inside
another if or else if statement(s).
41. 41
I believe the trial has shown conclusively that it is both possible and
desirable to use Python as the principal teaching language:
o It is Free (as in both cost and source code).
o It is trivial to install on a Windows PC allowing students to take
their interest further. For many the hurdle of installing a Pascal or
C compiler on a Windows machine is either too expensive or too
complicated;
o It is a flexible tool that allows both the teaching of traditional
procedural programming and modern OOP; It can be used to
teach a large number of transferable skills;
o It is a real-world programming language that can be and is used in
academia and the commercial world;
o It appears to be quicker to learn and, in combination with its many
libraries, this offers the possibility of more rapid student
development allowing the course to be made more challenging
and varied;
o and most importantly, its clean syntax offers increased
understanding and enjoyment for students;