0% found this document useful (0 votes)
7 views15 pages

Basic Python Programming

The document provides an overview of Python programming, including its characteristics as an interpreted, high-level, and object-oriented language. It covers installation steps, basic syntax, variable types, conditional statements, looping statements, and functions. Additionally, it highlights Python's applications in various fields such as healthcare, web development, and education.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views15 pages

Basic Python Programming

The document provides an overview of Python programming, including its characteristics as an interpreted, high-level, and object-oriented language. It covers installation steps, basic syntax, variable types, conditional statements, looping statements, and functions. Additionally, it highlights Python's applications in various fields such as healthcare, web development, and education.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

pantechelearning

Basic python
programming
what is python
python is an interpreter interactive high level object oriented
programming

interpreted interactive
Translate source code interact with the
into machine code interpreter directly to
write your programs

high level object oriended


A high-level programming it support object oriented
language is a type of programming system
programming language
that is designed to be
easier for humans to read
pantech elearning
1

INSTALLATION

python software is opensource Download


the python installer binaries from official
web site
Run the executable installer
add python to Environment variable
verify the python installation
pantech elearning

PROGRESSING STEP

web page run installer setup progress


WHY PYTHON

easy to learn easy to maintain


few key words, simple structure, clearly defined fairly easy to maintain
structure,

easy syntax Bulk library


few syntax only to cleary defined the code pandas, numpy , matplot,seaborn,sklearn

it support many technology Data base -commercial support


Artificial intelligence , Machine learning , computer
vision , Data science
python provides interfaces to all major com data
base
APPLICATION

health care Web and internet


deveploment

GUI Games and 3D


Application graphics

Database
education
access
basic
Syntax
syntax is like rules for write code sturcture

few syntax

INDENTATION COMMNETS MULTILINE QUATATION


STATEMENT
•Indentation refer to the •Comment start with a #, line continuation character •Python accept (‘),(“)
spaces at the beginning of and python will render the (/) to denote the line should and(“””) quotes to denote
the code line. rest of the line a comment. continue strings and multi lines

Example: Example: Example: Example:


if True: #this is a comments c=a+/ Name="pantech"
print("pantech") print("Hello world") +b+/ sentence="this is a pantech
C
create variable

variable
name="pantech

Multiple
assignment
a=b=c=1
•Variable is in very a,b,c,d=1,2,3,4

fundamental concept in
programming. casting

VARIABLE x=str(10)
y=float(10)

•Variable are containers for A=10


storing data values.
get the data
type
Temporarily store data in x=10
print(type(x))
computers memory
standared
data type
NUMERIC

data
Lorem ipsum dolor sit amet, consectetur
integer - a=10
adipiscing elit, sed do eiusmod tempor incididunt
float - a=10.5
ut labore et dolore magna aliqua.
STRATEGIC
complex - a=1+2j GOALS

types SEQUENCE
string - name="philip"
List - profile=["philip",26,"pantech"]
Tuple - profile=("philip",26,"pantech")

SET

DATA
myset = {"apple", "banana", "cherry"}

TYPES
DICTIONARY
dict={"name":"philip", "age":26", "Qualification"}

BOOLEAN
True
False
CONDITIONAL STATEMENT
•depend on the situation in programming where a specific task is to
be performed if a condition is true.
True-block of code run
False- move to else block

if elif else

if else
if only if elif else nested if

True
test expression False
test expression test expression statement Test expression Test expression

True False
False
True True True
True
body of if body of nested if else
body of if body of else test expression statement
body of if

False
statement
True
statement test expression statement
statement

False
else
LOOPING STATEMENT
Search . . .

FOR LOOP WHILE

for loop is the iterating over while loop we can execute a


the sequence set of statements as long as
continue is ture.

Example: Example: Example: Example:(break)


for i in range(5) for i in range(5) i=1 i=1
print(i) print(i) whilei<6: While i<6:
if i==2: print(i) print(i)
break i+1 if i==3:
break
i+=1
FUNCTION
what is function.
01 A function is the block of the code , whch is run only its called,
code can be resusable,
it can help to break the complex code into smaller setion

type of function
02 user defined
build in function

structure
03 def function_name(parameter):
#statement
body of funcion
return

arguments
04 positional argumengt
keyword argument
[Link]
PANTECHELEARNING

MY TIME
three challenge for
happiness

[Link] a dinner with a friend or


loved one

2. Sit outside in nature for 30


minutes

[Link] something new


MyTime
Three challenges for positive
[Link] something positive upon waking up

[Link] confidence about everything that you do.

[Link] thinking and speaking only positive words


Contact Us
We would love to hear from you!
If you have any questions, comments, or
feedback, please feel free to reach out to us by
using the contact information provided.

+91 89255 33484

[Link]

[Link]@[Link]

You might also like