About
About Us
Help
Privacy Policy
Terms of Service
LearnDesk
Learn
Academics
Business
Creative
Health and Fitness
Lifestyle
Personal Development
Software
Topics
Admissions
Engineering
Hardware
Hospitality
Humanities
Chinese
Languages
Maths
Pharma
View All Topics
Topics
Accounting
Advertising
Analysis
Analytics
Business Communication
eCommerce
Entrepreneurship
Finance
Finance - India
Freelancing
View All Topics
Topics
Arts & Crafts
Audio Editing
Audio Production
Dance
Design
Film Production
Music
Photography
Video Production
Writing
View All Topics
Topics
Dieting
Fitness
Food Safety
Games
Medical
Medical Professionals
Meditation
Mental Health
Pregnancy
Safety & First Aid
View All Topics
Topics
Beauty & Makeup
Food
Fashion
Gaming
Home Improvement
Parenting
Pet Care & Training
Relationships
Sustainable Living
View All Topics
Topics
Career Development
Learning
Religion and Spirituality
Self-Improvement
View All Topics
Topics
Accounting
Amazon Web Services
App Development
Continuous Integration
Backup Software
Business Automation
Computational Fluid Dynamics
Business Intelligence
Computer Aided Design (CAD)
View All Topics
Teach
Teach Online
Schedule
Items
Billing
Users
Marketing
Analytics
Settings
Change School
Account
Log In
Sign Up
Python Programming Tutorial for the Absolute Beginner
Getting Started
Introducing Python
Preview
Installing Python on Windows
Preview
Meeting the Interpreter
Preview
Writing Your First Program
Preview
Employing Variables
Preview
Obtaining User Input
Preview
Correcting Errors
Preview
Summary
Preview
Performing Operations
Doing Arithmetic
Preview
Assigning Values
Preview
Comparing Values
Assessing Logic
Examining Conditions
Setting Precedence
Casting Data Types
Manipulating Bits
Summary
Making Statements
Writing Lists
Manipulating Lists
Restricting Lists
Associating List Elements
If Statement
While Loop
Looping Over Items
Breaking Out of Loops
Summary
Preview
Defining Functions
Understanding Scope
Supplying Arguments
Returning Values
Using Callbacks
Adding Placeholders
Producing Generators
Handling Exceptions
Debugging Assertions
Summary
Preview
Importing Modules
Storing Functions
Owning Function Names
Interrogating the System
Performing Mathematics
Calculating Decimals
Telling the Time
Running a Timer
Matching Patterns
Summary
Preview
Managing Strings
Manipulating Strings
Formatting Strings
Modifying Strings
Converting Strings
Accessing Files
Reading and Writing Files
Updating File Strings
Pickling Data
Summary
Preview
Programming Objects
Encapsulating Data
Creating Instance Objects
Addressing Class Attributes
Examining Built-in Attributes
Collecting Garbage
Inheriting Features
Overriding Base Methods
Harnessing Polymorphism
Summary
Preview
Processing Requests
Sending Responses
Handling Values
Submitting Forms
Providing Text Areas
Checking Boxes
Choosing Radio Buttons
Selecting Options
Uploading Files
Summary
Preview
Building Interfaces
Launching a Window
Responding to Buttons
Displaying Messages
Gathering Entries
Listing Options
Polling Radio Buttons
Checking Boxes
Adding Images
Summary
Preview
Summary
Python Programming Tutorial for the Absolute Beginner
Getting Started
By:
Elm.Benbihi
2 minutes
Share
Share the link to this page
Copied
Facebook
Twitter
WhatsApp
LinkedIn
Email
Add to Calendar
Add the class to your calendar
Add to Google Calendar
Add to Apple Calendar
Add to Yahoo Calendar
Add to Outlook Calendar
Print
Completed
Python is a high-level programming language that is processed by the Python interpreter to produce results.
Python uses indentation to group statements into code blocks, where other languages use keywords or punctuation.
Python 2.7 is the final version of the 2.x branch of development, but the 3.x branch has the latest improvements.
Windows users can install Python with an installer, and Linux users can install Python with their package manager.
The Python interpreter has an interactive mode where you can test snippets of code and is useful for debugging code.
A Python program is simply a text file created with a plain text editor and saved with a “.py” file extension.
The Python print() function outputs the string specified within its parentheses.
String values must be enclosed between quote marks.
Where multiple versions of Python are installed on the same system it is important to explicitly call the desired interpreter.
A Python variable is a named container whose stored value can be referenced via that variable’s name
A Python variable can contain any data type but must be given an initial value when it is declared.
The Python input() function outputs the string specified within its parentheses, then waits to read a line of input.
Syntax errors due to incorrect code are recognized by the interpreter before the execution of the program.
Runtime errors due to exceptions are recognized by the interpreter during the execution of the program.
Semantic errors due to unexpected performance are not recognized by the interpreter.
Previous
Next
Sign Up
Signup to access thousands of classes
Continue with Facebook
Continue with Google
OR
Continue with Email
Already a member?
Log In
By registering for a LearnDesk account, you agree to our
Terms of Service
and
Privacy Policy
.
Share
Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.
Share with Google Contacts