Dive into the world of Python programming with these comprehensive notes! Whether you’re a beginner or looking to enhance your skills, these notes cover everything from basic syntax to advanced concepts like data structures and object-oriented programming. Packed with clear explanations, practica...
INTRODUCTION TO PYTHON
• Python is an interpreted high-level programming language that supports GUI programming.
• It was developed by GUIDO VAN ROSSUM in 1991.
ADVANTAGES
1. Easy to use
2. Platform-independent
3. Ample availability of libraries.
4. Free and open source
5. Variety of usage/application
6. Syntax Highlighting
7. It supports GUI applications.
8. Higher productivity
BASIC MODES OF PYTHON
1. Interactive mode
Python provides an interactive shell to execute code immediately and produce output instantly. In
interactive mode, type the command in front of the Python command prompt (>>>)
2. Script mode
In the Script mode of working, Python instructions are stored in a file generally with the .py or .pyw
extension and are executed together in one go as a unit. The saved instruction is known as Python script or
Python program.
Click on File in Python shell -> Click New Window-> Type the python codes->Save the file (by clicking
File->Save As) -> Run the code (click Run module or F5)
Python programs
1. #Arithmetic operator
a=20
b=10
c=a+b
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller jabezjacob. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.