Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Python basics

Rating
-
Sold
-
Pages
31
Uploaded on
17-08-2025
Written in
2025/2026

It's a study for a student who needs to understand the basic of python like variables, loop, functions and much more

Institution
Course

Content preview

UNIT – IBASICS OF PYTHON PROGRAMMING



INTRODUCTION TO PYTHON PROGRAMMING:

 Python was invented by Guido van Rossum in 1991 at CWI in
Netherland.
 Python is a general purpose, Dynamic, highlevel, and Interpreted
programming gy7ulanguage.
 It supports object oriented programming approach to develop Applications.

FEATURES OF PYTHON


1. Easy to learn and use.
2. Expressive language
3. Cross platform language
4. Free and Open Source
5. Object Oriented language
6. Large Standard library


Easy to Learn and Use:

 Python is easy to learn and use as compared to other programming languages.
 There is no use of the semicolon or curly braces.

Expressive Language:

 Python can perform complex task using a few lines of code.

Ex:

print(“Hi”)



1

, O/P:

Hi

Cross Platform Language:

 Python can run equally on different platforms such as Windows, Linux, Unix, Mac
etc., so that it is portable language

Free and Open Source:

 Python is freely available for everyone.
 It is freely available on it’s official website www.python.org Object

Oriented Language:

 Python supports Object Oriented language, It supports inheritance, class, object,
polymorphism, etc.

Large Standard Library:

 It provides a large range of libraries for various fields such as Machine Learning,
Web development and also for the scripting.
 There are various Machine learning libraries such as Tensor flow, Numpy, Pandas,
Keras, PyTorch , etc.
 Django, Flask, Pyramids are the popular framework for web development.


WRITING AND EXECUTING FIRST PYTHON PROGRAM:

There are three modes in Python

 Interactive Mode
 Script Mode
 IDLE

,Interactive Mode:

 Python provides Interactive shell to execute code immediately and produce output
instantly.
 For using this method, write python coding in the Command Prompt and start
working with python.




Script Mode:

 Using Script mode we can write our python code in a separate file of any editor in our
operating system, Ex: Notepad.




 Save this code by .py extension, now open command prompt and execute it.

, VARIABLES AND IDENTIFIERS:

VARIABLES:

 Variable is a name that is used to refer the memory location.
 Python variable is also known as an identifiers and used to whole values.
 In python no need to specify that type of variable.
 Variable names can be a group of both the letters and digits but they have to begin
with the letter or underscore.

IDENTIFIERS:

 It is used to identify the literals used in a program.

RULES:

 The first character of the variable must be a alphabets or underscore ( _ ).
 All the characters except the first characters may be an alphabet of lowercase
(a-z), uppercase (A-Z), Underscore ( _ ) or digits (0-9).

Written for

Institution
Course

Document information

Uploaded on
August 17, 2025
Number of pages
31
Written in
2025/2026
Type
Class notes
Professor(s)
Nil
Contains
Basic for a 12th student

Subjects

$5.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
ranjithkumarn

Get to know the seller

Seller avatar
ranjithkumarn Ayyanaadaar janaki ammal college
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
9 months
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions