Enviar pesquisa
Carregar
Python an-intro - odp
•
Transferir como ODP, PDF
•
0 gostou
•
1,233 visualizações
Arulalan T
Seguir
This is python introduction which is created by me.
Leia menos
Leia mais
Educação
Tecnologia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 99
Baixar agora
Recomendados
Seven Languages in Seven Days: Ruby
Seven Languages in Seven Days: Ruby
Zach Leatherman
Python ds
Python ds
Sharath Ankrajegowda
Pa1 session 3_slides
Pa1 session 3_slides
aiclub_slides
Puppet Language 4.0 - PuppetConf 2014
Puppet Language 4.0 - PuppetConf 2014
Puppet
Perl_Tutorial_v1
Perl_Tutorial_v1
tutorialsruby
1 the ruby way
1 the ruby way
Luis Doubrava
Arrays in PHP
Arrays in PHP
Compare Infobase Limited
Php array
Php array
Core Lee
Recomendados
Seven Languages in Seven Days: Ruby
Seven Languages in Seven Days: Ruby
Zach Leatherman
Python ds
Python ds
Sharath Ankrajegowda
Pa1 session 3_slides
Pa1 session 3_slides
aiclub_slides
Puppet Language 4.0 - PuppetConf 2014
Puppet Language 4.0 - PuppetConf 2014
Puppet
Perl_Tutorial_v1
Perl_Tutorial_v1
tutorialsruby
1 the ruby way
1 the ruby way
Luis Doubrava
Arrays in PHP
Arrays in PHP
Compare Infobase Limited
Php array
Php array
Core Lee
Pygrib documentation
Pygrib documentation
Arulalan T
TheAssociationOfAtheismOnLegalPersonalityInTurkey
TheAssociationOfAtheismOnLegalPersonalityInTurkey
Morgan Elizabeth Romano
Nltk - Boston Text Analytics
Nltk - Boston Text Analytics
shanbady
Natural Language Toolkit (NLTK), Basics
Natural Language Toolkit (NLTK), Basics
Prakash Pimpale
Introduction to python for Beginners
Introduction to python for Beginners
Sujith Kumar
Introduction to Python
Introduction to Python
amiable_indian
Intro to Python Programming Language
Intro to Python Programming Language
Dipankar Achinta
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)
Paige Bailey
Python Presentation
Python Presentation
Narendra Sisodiya
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 Minutes
Matt Harrison
Unutturulmak istenen Devrimci Atatürk! (2)
Unutturulmak istenen Devrimci Atatürk! (2)
Olgaç Demirkol
Introduction to Python
Introduction to Python
Nowell Strite
python-an-introduction
python-an-introduction
Shrinivasan T
Lesson1 python an introduction
Lesson1 python an introduction
Arulalan T
Python An Intro
Python An Intro
Arulalan T
Python Workshop - Learn Python the Hard Way
Python Workshop - Learn Python the Hard Way
Utkarsh Sengar
Python introduction 2
Python introduction 2
Ahmad Hussein
Python_in_Detail
Python_in_Detail
MAHALAKSHMI P
An Intro to Python in 30 minutes
An Intro to Python in 30 minutes
Sumit Raj
python beginner talk slide
python beginner talk slide
jonycse
Python Workshop
Python Workshop
Assem CHELLI
Python introduction 1
Python introduction 1
Ahmad Hussein
Mais conteúdo relacionado
Destaque
Pygrib documentation
Pygrib documentation
Arulalan T
TheAssociationOfAtheismOnLegalPersonalityInTurkey
TheAssociationOfAtheismOnLegalPersonalityInTurkey
Morgan Elizabeth Romano
Nltk - Boston Text Analytics
Nltk - Boston Text Analytics
shanbady
Natural Language Toolkit (NLTK), Basics
Natural Language Toolkit (NLTK), Basics
Prakash Pimpale
Introduction to python for Beginners
Introduction to python for Beginners
Sujith Kumar
Introduction to Python
Introduction to Python
amiable_indian
Intro to Python Programming Language
Intro to Python Programming Language
Dipankar Achinta
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)
Paige Bailey
Python Presentation
Python Presentation
Narendra Sisodiya
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 Minutes
Matt Harrison
Unutturulmak istenen Devrimci Atatürk! (2)
Unutturulmak istenen Devrimci Atatürk! (2)
Olgaç Demirkol
Introduction to Python
Introduction to Python
Nowell Strite
Destaque
(12)
Pygrib documentation
Pygrib documentation
TheAssociationOfAtheismOnLegalPersonalityInTurkey
TheAssociationOfAtheismOnLegalPersonalityInTurkey
Nltk - Boston Text Analytics
Nltk - Boston Text Analytics
Natural Language Toolkit (NLTK), Basics
Natural Language Toolkit (NLTK), Basics
Introduction to python for Beginners
Introduction to python for Beginners
Introduction to Python
Introduction to Python
Intro to Python Programming Language
Intro to Python Programming Language
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python Presentation
Python Presentation
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 Minutes
Unutturulmak istenen Devrimci Atatürk! (2)
Unutturulmak istenen Devrimci Atatürk! (2)
Introduction to Python
Introduction to Python
Semelhante a Python an-intro - odp
python-an-introduction
python-an-introduction
Shrinivasan T
Lesson1 python an introduction
Lesson1 python an introduction
Arulalan T
Python An Intro
Python An Intro
Arulalan T
Python Workshop - Learn Python the Hard Way
Python Workshop - Learn Python the Hard Way
Utkarsh Sengar
Python introduction 2
Python introduction 2
Ahmad Hussein
Python_in_Detail
Python_in_Detail
MAHALAKSHMI P
An Intro to Python in 30 minutes
An Intro to Python in 30 minutes
Sumit Raj
python beginner talk slide
python beginner talk slide
jonycse
Python Workshop
Python Workshop
Assem CHELLI
Python introduction 1
Python introduction 1
Ahmad Hussein
Python Part 1
Python Part 1
Mohamed Ramadan
Python Novice to Ninja
Python Novice to Ninja
Al Sayed Gamal
2. Python Cheat Sheet.pdf
2. Python Cheat Sheet.pdf
MeghanaDBengalur
python cheat sheat, Data science, Machine learning
python cheat sheat, Data science, Machine learning
TURAGAVIJAYAAKASH
Beginner's Python Cheat Sheet
Beginner's Python Cheat Sheet
Verxus
beginners_python_cheat_sheet_pcc_all (1).pdf
beginners_python_cheat_sheet_pcc_all (1).pdf
ElNew2
Python 101 1
Python 101 1
Iccha Sethi
Beginners python cheat sheet - Basic knowledge
Beginners python cheat sheet - Basic knowledge
O T
1. python
1. python
PRASHANT OJHA
Python cheatsheet for beginners
Python cheatsheet for beginners
Lahore Garrison University
Semelhante a Python an-intro - odp
(20)
python-an-introduction
python-an-introduction
Lesson1 python an introduction
Lesson1 python an introduction
Python An Intro
Python An Intro
Python Workshop - Learn Python the Hard Way
Python Workshop - Learn Python the Hard Way
Python introduction 2
Python introduction 2
Python_in_Detail
Python_in_Detail
An Intro to Python in 30 minutes
An Intro to Python in 30 minutes
python beginner talk slide
python beginner talk slide
Python Workshop
Python Workshop
Python introduction 1
Python introduction 1
Python Part 1
Python Part 1
Python Novice to Ninja
Python Novice to Ninja
2. Python Cheat Sheet.pdf
2. Python Cheat Sheet.pdf
python cheat sheat, Data science, Machine learning
python cheat sheat, Data science, Machine learning
Beginner's Python Cheat Sheet
Beginner's Python Cheat Sheet
beginners_python_cheat_sheet_pcc_all (1).pdf
beginners_python_cheat_sheet_pcc_all (1).pdf
Python 101 1
Python 101 1
Beginners python cheat sheet - Basic knowledge
Beginners python cheat sheet - Basic knowledge
1. python
1. python
Python cheatsheet for beginners
Python cheatsheet for beginners
Mais de Arulalan T
wgrib2
wgrib2
Arulalan T
Climate Data Operators (CDO)
Climate Data Operators (CDO)
Arulalan T
CDAT - graphics - vcs - xmgrace - Introduction
CDAT - graphics - vcs - xmgrace - Introduction
Arulalan T
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction
Arulalan T
CDAT - cdms numpy arrays - Introduction
CDAT - cdms numpy arrays - Introduction
Arulalan T
Python an-intro-python-month-2013
Python an-intro-python-month-2013
Arulalan T
Python an-intro v2
Python an-intro v2
Arulalan T
Thermohaline Circulation & Climate Change
Thermohaline Circulation & Climate Change
Arulalan T
Testing in-python-and-pytest-framework
Testing in-python-and-pytest-framework
Arulalan T
Final review contour
Final review contour
Arulalan T
Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation
Arulalan T
Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation
Arulalan T
Edit/correct India Map In Cdat Documentation - With Edited World Map Data
Edit/correct India Map In Cdat Documentation - With Edited World Map Data
Arulalan T
Nomography
Nomography
Arulalan T
matplotlib-installatin-interactive-contour-example-guide
matplotlib-installatin-interactive-contour-example-guide
Arulalan T
"contour.py" module
"contour.py" module
Arulalan T
contour analysis and visulaization documetation -1
contour analysis and visulaization documetation -1
Arulalan T
Automatic B Day Remainder Program
Automatic B Day Remainder Program
Arulalan T
Sms frame work using gnokii, ruby & csv - command line argument
Sms frame work using gnokii, ruby & csv - command line argument
Arulalan T
sms frame work
sms frame work
Arulalan T
Mais de Arulalan T
(20)
wgrib2
wgrib2
Climate Data Operators (CDO)
Climate Data Operators (CDO)
CDAT - graphics - vcs - xmgrace - Introduction
CDAT - graphics - vcs - xmgrace - Introduction
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction
CDAT - cdms2, maskes, cdscan, cdutil, genutil - Introduction
CDAT - cdms numpy arrays - Introduction
CDAT - cdms numpy arrays - Introduction
Python an-intro-python-month-2013
Python an-intro-python-month-2013
Python an-intro v2
Python an-intro v2
Thermohaline Circulation & Climate Change
Thermohaline Circulation & Climate Change
Testing in-python-and-pytest-framework
Testing in-python-and-pytest-framework
Final review contour
Final review contour
Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation
Contour Ilugc Demo Presentation
Edit/correct India Map In Cdat Documentation - With Edited World Map Data
Edit/correct India Map In Cdat Documentation - With Edited World Map Data
Nomography
Nomography
matplotlib-installatin-interactive-contour-example-guide
matplotlib-installatin-interactive-contour-example-guide
"contour.py" module
"contour.py" module
contour analysis and visulaization documetation -1
contour analysis and visulaization documetation -1
Automatic B Day Remainder Program
Automatic B Day Remainder Program
Sms frame work using gnokii, ruby & csv - command line argument
Sms frame work using gnokii, ruby & csv - command line argument
sms frame work
sms frame work
Último
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
pboyjonauth
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
Celine George
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
Chameera Dedduwage
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
RoyAbrique
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
David Douglas School District
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
SafetyChain Software
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
EduSkills OECD
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology ( Production , Purification , and Application )
Sakshi Ghasle
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
Steve Thomason
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
National Information Standards Organization (NISO)
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
pboyjonauth
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
microwave assisted reaction. General introduction
microwave assisted reaction. General introduction
Maksud Ahmed
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
eniolaolutunde
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
NirmalaLoungPoorunde1
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
RaunakKeshri1
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
ssuser54595a
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
GeoBlogs
Último
(20)
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology ( Production , Purification , and Application )
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
microwave assisted reaction. General introduction
microwave assisted reaction. General introduction
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
Python an-intro - odp
1.
Python – An Introduction
Arulalan.T arulalant@gmail.com Centre for Atmospheric Science Indian Institute of Technology Delhi
2.
Python is a Programming Language
3.
There are so many Programming Languages.
Why Python ?
4.
5.
6.
Python is simple and beautiful
7.
Python is Easy to Learn
8.
Python is Free Open Source Software
9.
Can Do Text Handling
Games System Administration NLP GUI programming Web Applications ... Database Apps Scientific Applications
10.
H i s t
o r y
11.
Guido van Rossum Father of Python 1991
12.
Perl Java Python Ruby PHP 1987 1991 1993 1995
13.
What is Python?
14.
Python is...
A dynamic,open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
15.
Quick and Easy Intrepreted Scripting Language Variable declarations are unnecessary Variables are not typed Syntax is simple and consistent Memory management is automatic
16.
Object Oriented Programming Classes Methods Inheritance Modules etc.,
17.
Examples!
18.
19.
print “Hello World”
20.
No Semicolons !
21.
Indentation
22.
You have to follow the Indentation Correctly. Otherwise, Python will beat you !
23.
24.
Discipline Makes Good
25.
Variables colored_index_cards
26.
No Need to Declare Variable Types ! Python Knows Everything !
27.
value = 10 print value value = 100.50 print value value = “This is String” print value * 3
28.
Input
29.
name = raw_input(“What
is Your name?”) print "Hello" , name , "Welcome"
30.
Flow
31.
if score
>= 5000 : print “You win!” elif score <= 0 : print “Game over.” else: print “Current score:”,score print “Donen”
32.
Loop
33.
for i in range(1, 5): print i else: print 'The for loop is over'
34.
number = 23 running = True while running : guess = int(raw_input('Enter an integer : ')) if guess == number : print 'Congratulations, you guessed it.' running = False elif guess < number : print 'No, it is a little higher than that.' else: print 'No, it is a little lower than that.' print 'Done'
35.
Array
36.
List = Array numbers = [ "zero", "one", "two", "three", "FOUR" ]
37.
List = Array numbers = [ "zero", "one", "two", "three", "FOUR" ] numbers[0] >>> zero numbers[4] numbers[1] >>> FOUR >>> FOUR numbers[2]
>>> three
38.
Multi Dimension List numbers = [ ["zero", "one"],["two", "three", "FOUR" ]] numbers[0] >>> ["zero", "one"] numbers[0][0] numbers[1][1] >>> zero >>> FOUR len(numbers)
>>> 2
39.
Sort List primes = [
11, 5, 7, 2, 13, 3 ]
40.
Sort List primes = [
11, 5, 7, 2, 13, 3 ] primes.sort()
41.
Sort List primes = [
11, 5, 7, 2, 13, 3 ] primes.sort() >>> [2, 3, 5, 7, 11, 13]
42.
Sort List names = [
"Shrini", "Bala", "Suresh", "Arul"] names.sort() >>> ["Arul", "Bala","Shrini","Suresh"] names.reverse() >>> ["Suresh","Shrini","Bala","Arul"]
43.
Mixed List names = [
"Shrini", 10, "Arul", 75.54] names[1]+10 >>> 20 names[2].upper() >>> ARUL
44.
Mixed List names = [
"Shrini", 10, "Arul", 75.54] names[1]+10 >>> 20 names[2].upper() >>> ARUL
45.
Append on List numbers = [ 1,3,5,7] numbers.append(9) >>> [1,3,5,7,9]
46.
Tuples immutable
47.
names = ('Arul','Dhastha','Raj') name.append('Selva') Error : Can not modify the tuple Tuple is immutable type
48.
String
49.
name = 'Arul' name[0] >>>'A' myname = 'Arul' + 'alan' >>> 'Arulalan'
50.
split name = 'This is python string' name.split(' ') >>>['This','is','python','string'] comma = 'Shrini,Arul,Suresh' comma.split(',') >>> ['Shrini','Arul','Suresh']
51.
join li = ['a','b','c','d'] s = '' new = s.join(li) >>> abcd new.split('') >>>['a','b','c','d']
52.
'small'.upper() >>>'SMALL' 'BIG'.lower() >>> 'big' 'mIxEd'.swapcase() >>>'MiXwD'
53.
Dictionary
54.
menu = {
“idly” : 2.50, “dosai” : 10.00, “coffee” : 5.00, “ice_cream” : 5.00, 100 : “Hundred” } menu[“idly”] 2.50 menu[100] Hundred
55.
Function
56.
def sayHello(): print 'Hello World!' # block belonging of fn # End of function sayHello() # call the function
57.
def printMax(a, b): if a > b: print a, 'is maximum' else: print b, 'is maximum' printMax(3, 4)
58.
Using in built Modules
59.
#!/usr/bin/python # Filename: using_sys.py import time print 'The sleep started' time.sleep(3) print 'The sleep finished'
60.
#!/usr/bin/python import os os.listdir('/home/arulalan') os.walk('/home/arulalan')
61.
Making Our Own Modules
62.
#!/usr/bin/python # Filename: mymodule.py def sayhi(): print “Hi, this is mymodule speaking.” version = '0.1' # End of mymodule.py
63.
#!/usr/bin/python # Filename: mymodule_demo.py import mymodule mymodule.sayhi() print 'Version', mymodule.version
64.
#!/usr/bin/python # Filename: mymodule_demo2.py from mymodule import sayhi, version # Alternative: # from mymodule import * sayhi() print 'Version', version
65.
Class
66.
Classes class Person: pass # An empty block p = Person() print p
67.
Classes class Person: def sayHi(self): print 'Hello, how are you?' p = Person() p.sayHi()
68.
Classes class Person: def __init__(self, name):
#like contstructor self.name = name def sayHi(self): print 'Hello, my name is', self.name p = Person('Arulalan.T') p.sayHi()
69.
Classes Inheritance
70.
Classes class A: def hello(self):
print ' I am super class ' class B(A): def bye(self): print ' I am sub class ' p = B() p.hello() p.bye()
71.
Classes class A:
Var = 10 def __init__(self): self.public = 100 self._protected_ = 'protected' self.__private__ = 'private' Class B(A): pass p = B() p.__protected__
72.
File Handling
73.
File Writing
74.
poem = ''' Programming is fun When the work is done if you wanna make your work also fun: use Python! ''' f = file('poem.txt', 'w') # open for 'w'riting f.write(poem) # write text to file f.close()
75.
File Reading
76.
f= file('poem.txt','r') for line in f.readlines():
print line f.close()
77.
Database Intergration
78.
import psycopg2 conn = psycopg2.connect(" dbname='pg_database' user='dbuser' host='localhost' password='dbpass' ") cur = conn.cursor() cur.execute("""SELECT * from pg_table""") rows = cur.fetchall() print rows cur.close() conn.close()
79.
import psycopg2 conn = psycopg2.connect(" dbname='pg_database' user='dbuser' host='localhost' password='dbpass' ") cur = conn.cursor() cur.execute("'insert into pg_table values(1,'python')"') conn.commit() cur.close() conn.close()
80.
THE END of code :)
81.
How to learn ?
82.
Python – Shell Interactive Python
Instance Responce Learn as you type
83.
bpython ipython
} teach you very easily
84.
Python can communicate With Other Languages
85.
C + Python
86.
87.
Java + Python
88.
89.
GUI With Python
90.
91.
Glade + Python + GTK = GUI APP
92.
GLADE
93.
Using Glade + Python
94.
Web Web
95.
Web Frame Work in Python
Baixar agora