SlideShare una empresa de Scribd logo
1 de 137
Descargar para leer sin conexión
H
appy
women'sday
python(p1)
Presenter : Ramin Najjarbashi
Email: ramin.najarbashi@ .com
python(p1)
Presenter : Ramin Najjarbashi
Email: ramin.najarbashi@ .com
Who am I?
Who am I?
● Farhamg.Name
● Robocup Server 2D
● GNegar
● BadTag
● BlueWay
● UMS
● Xbuilder
● ...
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
● Guido van Rossum
history
● Guido van Rossum
history
https://soundcloud.com/mashhadsoftwaretalks
http://www.slideshare.net/ramin311/python-part-0
Hello world
Hello world
printprint ""hello worldhello world""
from interpreter
$ python$ python
>>>>>>print "print "hello worldhello world""
hello worldhello world
Python 3
$ python$ python
>>>>>>print ("print ("hello worldhello world")")
hello worldhello world
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
repl
Read, Eval, Print,Loop
repl
$ python$ python # ...# ...
>>>>>> 2 + 22 + 2 # Read, Eval# Read, Eval
44 # Print# Print
>>>>>> # Loop# Loop
Linux script
Linux script
Linux script
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
ObjectsEverything is an Object!
Objects
Obj
id
Value
Immutable
Mutable
Tuple
Integer
String
List
Dictionary
Objects
Obj
id
Value
Immutable
Mutable
Tuple
Integer
String
List
Dictionary
Mutable
>>>>>> bb == [ ][ ]
>>>>>> idid ((bb))
140675605442000140675605442000
>>>>>> bb .. appendappend(( 33 ))
>>>>>> bb
[3][3]
>>>>>> idid ((bb))
140675605442000140675605442000 # SAME!# SAME!
Immutable
>>>>>> aa == 44
>>>>>> idid ((aa))
64068966406896
>>>>>> aa == a + 1a + 1
>>>>>> idid ((aa))
64068726406872 # DIFFERENT!# DIFFERENT!
Variables
Variables
>>>>>> a =a = 44 # Integer# Integer
>>>>>> b =b = 5.65.6 ## FloatFloat
>>>>>> c =c = “hello”“hello” ## StringString
>>>>>> d =d = “4”“4” ## rebound to Stringrebound to String
naming
naming
Lowercase
underscore_between_words
don't
start
with
numbers
naming
Lowercase
underscore_between_words
don't
start
with
numbers
SEE PEP 8
naming
Lowercase
underscore_between_words
don't
start
with
numbers
SEE PEP 8
PEP
Python Enhancement
Proposal (similar to
JSR in Java)
PEP
Python Enhancement
Proposal (similar to
JSR in Java)
http://www.python.org/dev/peps/
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
math
math
Operator Description
+ addition
- subtraction
* multiplication
/ division
// integer division
% remainder
** power
MATH
$ python$ python
>>>>>> 3/43/4
00
>>>>>> 3/4.3/4.
0.750.75
MATH
$ python$ python
>>>>>> 2.5+3j * 52.5+3j * 5
(2.5+15j)(2.5+15j)
>>>>>> 2 ** 1000002 ** 100000
999002093014384...L999002093014384...L
(in next slide!)(in next slide!)
MATH
MATH
MATH
$ python$ python
>>>>>> 0.1 + 0.20.1 + 0.2
0.300000000000000040.30000000000000004
MATH
$ python$ python
>>>>>> 0.1 + 0.20.1 + 0.2
0.300000000000000040.30000000000000004
MATH
$ python$ python
>>>>>> 0.1 + 0.20.1 + 0.2
0.300000000000000040.30000000000000004
You can check out the decimal module if you need more exact answers.
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
Strings
>>>>>> printprint 'He said, "I'He said, "I '' m sorry"'m sorry"'
He said, "I'm sorry"He said, "I'm sorry"
>>>>>> printprint '''He said, "I'm sorry"''''''He said, "I'm sorry"'''
He said, "I'm sorry"He said, "I'm sorry"
>>>>>> printprint """He said, "I'm sorry"""He said, "I'm sorry "" """"""
He said, "I'm sorry"He said, "I'm sorry"
>>>>>> a =a = """He said, "I'm sorry"""He said, "I'm sorry "" """"""
Strings
Strings
>>>>>> #c-like#c-like
>>>>>> " %s %s "" %s %s " % (% ( 'hello''hello' ,, 'world''world' ))
'hello world''hello world'
>>>>>> #PEP 3101 style#PEP 3101 style
>>>>>> "{0} {1}""{0} {1}" . format(. format( 'hello''hello' ,, 'world''world' ))
'hello world''hello world'
>>>>>> ''' Comment string''' Comment string
.….… multiline! '''multiline! '''
>>>>>>
none
boolean
sequences
Set
Dict
List
tuple
sequences
{Set}
{Dict}
[List]
(tuple)
Terminl
time
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
function
defdef add_numadd_num(x, y=1):(x, y=1):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
returnreturn x + yx + y
>>>>>> printprint add_num(2, 3)add_num(2, 3)
55
>>>>>> printprint add_num(2)add_num(2)
33
function
function
defdef add_numadd_num(x, y):(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
returnreturn zz
>>>>>> printprint add_num(2, 3)add_num(2, 3)
55
def
defdef add_num(x, y):add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
name
defdef add_numadd_num(x, y):(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
parameters
def add_numdef add_num(x, y)(x, y)::
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
: + indent
def add_num(x, y)def add_num(x, y)::
--------'''Get x, y and return:'''Get x, y and return:
-------- X + Y '''X + Y '''
--------z = x + yz = x + y
--------return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
documentation
def add_num(x, y):def add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
body
def add_num(x, y):def add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
return
def add_num(x, y):def add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
returnreturn zz
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
naming
Lowercase
underscore_between_words
don't
start
with
numbers
verb
naming
Lowercase
underscore_between_words
don't
start
with
numbers
verb
SEE PEP 8
documentation
def add_num(x, y):def add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>>>>> helphelp(add_num)(add_num)
Help on function add_num in module __main__:Help on function add_num in module __main__:
add_num()add_num()
Get x,y and return:Get x,y and return:
X + YX + Y
(END)(END)
KLAz
KLAz
classclass StudentStudent((objectobject):):
defdef __init____init__ ((self,self, namename):):
self.self.name = namename = name
defdef print_nameprint_name ((selfself):):
printprint self.self.namename
KLAz
classclass Student(object):Student(object):
def __init__ (self, name):def __init__ (self, name):
self.name = nameself.name = name
def print_name (self):def print_name (self):
print self.nameprint self.name
name
classclass StudentStudent(object):(object):
def __init__ (self, name):def __init__ (self, name):
self.name = nameself.name = name
def print_name (self):def print_name (self):
print self.nameprint self.name
type
class Studentclass Student((objectobject))::
def __init__ (self, name):def __init__ (self, name):
self.name = nameself.name = name
def print_name (self):def print_name (self):
print self.nameprint self.name
: + indent
class Student(object)class Student(object)::
----def __init__ (self, name):def __init__ (self, name):
--------self.name = nameself.name = name
----def print_name (self):def print_name (self):
--------print self.nameprint self.name
__Init__ method
class Student(object):class Student(object):
defdef __init____init__ ((self,self, namename):):
self.self.name = namename = name
def print_name (self):def print_name (self):
print self.nameprint self.name
self
class Student(object):class Student(object):
def __init__ (def __init__ (selfself, name):, name):
self.name = nameself.name = name
def print_name (self):def print_name (self):
print self.nameprint self.name
Sub-KLAz
classclass KharKhoonKharKhoon(Student):(Student):
defdef print_nameprint_name ((selfself):):
printprint self.self.name +name + '' CRAMer '''' CRAMer ''
>>>>>> m = KharKhoon(“ahmad”)m = KharKhoon(“ahmad”)
>>>>>> m.print_name()m.print_name()
ahmad CRAMerahmad CRAMer
naming
naming
CamelCase
don't
start
with
numbers
Nouns
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
while
>>>>>>whilewhile b < 10:b < 10:
…… printprint bb
…… a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
while
>>>>>>whilewhile b < 10:b < 10:
…… print bprint b
…… a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
while
>>>while>>>while b < 10b < 10::
…… print bprint b
…… a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
while
>>>while b < 10>>>while b < 10::
……--------print bprint b
……--------a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
while
>>>while b < 10:>>>while b < 10:
…… printprint bb
…… a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
while
>>>while b < 10:>>>while b < 10:
…… print bprint b
…… a,a, b =b = b,b, a+ba+b
……
11
11
22
33
55
88
forever
>>>>>>whilewhile 1:1:
…… passpass
if
>>>>>>ifif b < 10:b < 10:
…… ifif b > 8:b > 8:
…… printprint '9''9'
if
>>>>>>ifif b < 10b < 10 andand b > 8:b > 8:
…… printprint '9''9'
if
>>>>>>ifif 8 < b < 108 < b < 10::
…… printprint '9''9'
if-else
>>>>>>ifif b >= 10:b >= 10:
…… printprint 'big''big'
…… elifelif b =< 8:b =< 8:
…… printprint 'small''small'
…… elseelse::
…… printprint '9''9'
if-else
>>>>>>ifif b >= 10:b >= 10:
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
if-else
>>>if>>>if b >= 10b >= 10::
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
if-else
>>>if b >= 10>>>if b >= 10::
……--------print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
……--------print 'small'print 'small'
…… else:else:
……--------print '9'print '9'
if-else
>>>if b >= 10:>>>if b >= 10:
…… printprint 'big''big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elifelif b =< 8:b =< 8:
…… printprint 'small''small'
…… else:else:
…… print '9'print '9'
if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elifelif b =< 8:b =< 8:
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elifelif b =< 8b =< 8::
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… printprint 'small''small'
…… else:else:
…… print '9'print '9'
if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… elseelse::
…… printprint '9''9'
if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… elseelse::
…… print '9'print '9'
for
>>>>>> forfor nn inin [2, 3, 4, 5, 6, 7, 8, 9]:[2, 3, 4, 5, 6, 7, 8, 9]:
…… forfor xx inin rangerange(2, n):(2, n):
…… ifif n % x == 0:n % x == 0:
...... printprint nn
...... breakbreak
...... elseelse::
...... printprint n,n, 'is a prime''is a prime'
for
>>>>>> forfor n in [2, 3, 4, 5, 6, 7, 8, 9]:n in [2, 3, 4, 5, 6, 7, 8, 9]:
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
for
>>> for>>> for nn in [2, 3, 4, 5, 6, 7, 8, 9]:in [2, 3, 4, 5, 6, 7, 8, 9]:
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
for
>>> for n>>> for n inin [2, 3, 4, 5, 6, 7, 8, 9]:[2, 3, 4, 5, 6, 7, 8, 9]:
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
for
>>> for n in>>> for n in [2, 3, 4, 5, 6, 7, 8, 9][2, 3, 4, 5, 6, 7, 8, 9]::
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
for
>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:
…… forfor xx inin rangerange(2, n):(2, n):
…… ifif n % x == 0:n % x == 0:
...... printprint nn
...... breakbreak
...... elseelse::
...... printprint n,n, 'is a prime''is a prime'
for
>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:
…… for x infor x in rangerange(2, n)(2, n)::
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
for
>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
for
>>>>>> dict = {dict = { 'a''a':1 ,:1 , 'b''b'::'AB''AB',, 'c''c':[1,{}] }:[1,{}] }
>>>>>>forfor key, valkey, val inin dict.items()dict.items()::
…… printprint key, valkey, val
a 1a 1
b ABb AB
c [1,{}]c [1,{}]
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
Input file
>>>>>>fin = (fin = ('foo.txt''foo.txt'))
>>>>>>forfor lineline inin finfin::
…… printprint lineline
>>>>>>fin.close()fin.close()
Input file
>>>>>>fin = (fin = ('foo.txt''foo.txt'))
>>>for line in fin:>>>for line in fin:
…… print lineprint line
>>>fin.close()>>>fin.close()
Input file
>>>fin = ('foo.txt')>>>fin = ('foo.txt')
>>>>>>forfor lineline inin finfin::
…… printprint lineline
>>>fin.close()>>>fin.close()
Input file
>>>fin = ('foo.txt')>>>fin = ('foo.txt')
>>>for line in fin:>>>for line in fin:
…… print lineprint line
>>>>>>fin.close()fin.close()
Output file
>>>>>>fout = (fout = ('foo.txt''foo.txt',,'w''w'))
>>>>>>fout.writefout.write(('Hello world!''Hello world!'))
>>>>>>fout.close()fout.close()
Output file
>>>>>>fout = (fout = ('foo.txt''foo.txt',,'w''w'))
>>>fout.write('Hello world!')>>>fout.write('Hello world!')
>>>fout.close()>>>fout.close()
Output file
>>>fout = ('foo.txt','w')>>>fout = ('foo.txt','w')
>>>>>>fout.write(fout.write('Hello world!''Hello world!'))
>>>fout.close()>>>fout.close()
Output file
>>>fout = ('foo.txt','w')>>>fout = ('foo.txt','w')
>>>fout.write('Hello world!'>>>fout.write('Hello world!'))
>>>>>>fout.close()fout.close()
file
Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
TRAce
printprint
TRAce
pdbpdb
trace
>>>>>>importimport pdbpdb
>>>>>>pdb.run(pdb.run('my_func()''my_func()'))
OrOr
python -m pdb myscript.pypython -m pdb myscript.py
trace
●● h - helph - help
●● s - step intos - step into
●● n - nextn - next
●● c - continuec - continue
●● w - where am I (in stack)?w - where am I (in stack)?
●● l - list code around mel - list code around me
trace
hh - help- help
ss - step into- step into
nn - next- next
cc - continue- continue
ww - where am I (in stack)?- where am I (in stack)?
ll - list code around me- list code around me
trace
trytry::
f =f = openopen(arg, 'r')(arg, 'r')
exceptexcept IOErrorIOError::
printprint 'cannot open''cannot open', arg, arg
elseelse::
printprint argarg
f.close()f.close()
comment
##
Dir & help
>>>>>> dirdir([])([])
['__add__', '__class__',['__add__', '__class__',
'__contains__',...'__contains__',...
'__iter__',... '__len__',... ,'__iter__',... '__len__',... ,
'append', 'count','append', 'count',
'extend', 'index', 'insert','extend', 'index', 'insert',
'pop', 'remove','pop', 'remove',
'reverse', 'sort']'reverse', 'sort']
Python Doc
http://www.python.org/doc/
StackOverFlow
Google
#IRC
#python
#python-ir
M.L
general@tehpug.pyiran.com
Pyiran Mailing list
&Coming soon...
Iranian Python Community
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GE/IT/P/SS d---(-)@?>--pu s--(): a- C++++(+++)$@>++ ULC++++(+++)@ P+() L+++(+++)$@>+++ !E--- !W+++(++)@>+ !N* !o K-- !w---? !O---? M-- !V-
PS++(++)@>+ !PE Y? PGP++(++)@>+++ !t !5 !X R+ tv? b++++(+++) DI D+++@ G++@ e+++@ h++ r---?>$ !y--
------END GEEK CODE BLOCK------
Join us

Más contenido relacionado

La actualidad más candente

Clustering com numpy e cython
Clustering com numpy e cythonClustering com numpy e cython
Clustering com numpy e cythonAnderson Dantas
 
Groovy puzzlers jug-moscow-part 2
Groovy puzzlers jug-moscow-part 2Groovy puzzlers jug-moscow-part 2
Groovy puzzlers jug-moscow-part 2Evgeny Borisov
 
RxSwift 시작하기
RxSwift 시작하기RxSwift 시작하기
RxSwift 시작하기Suyeol Jeon
 
{tidytext}と{RMeCab}によるモダンな日本語テキスト分析
{tidytext}と{RMeCab}によるモダンな日本語テキスト分析{tidytext}と{RMeCab}によるモダンな日本語テキスト分析
{tidytext}と{RMeCab}によるモダンな日本語テキスト分析Takashi Kitano
 
Python avanzado - parte 1
Python avanzado - parte 1Python avanzado - parte 1
Python avanzado - parte 1coto
 
1024+ Seconds of JS Wizardry - JSConf.eu 2013
1024+ Seconds of JS Wizardry - JSConf.eu 20131024+ Seconds of JS Wizardry - JSConf.eu 2013
1024+ Seconds of JS Wizardry - JSConf.eu 2013Martin Kleppe
 
Useful javascript
Useful javascriptUseful javascript
Useful javascriptLei Kang
 
밑바닥부터 시작하는 의료 AI
밑바닥부터 시작하는 의료 AI밑바닥부터 시작하는 의료 AI
밑바닥부터 시작하는 의료 AINAVER Engineering
 
Slaying the Dragon: Implementing a Programming Language in Ruby
Slaying the Dragon: Implementing a Programming Language in RubySlaying the Dragon: Implementing a Programming Language in Ruby
Slaying the Dragon: Implementing a Programming Language in RubyJason Yeo Jie Shun
 
Tokyo APAC Groundbreakers tour - The Complete Java Developer
Tokyo APAC Groundbreakers tour - The Complete Java DeveloperTokyo APAC Groundbreakers tour - The Complete Java Developer
Tokyo APAC Groundbreakers tour - The Complete Java DeveloperConnor McDonald
 
«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System
«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System
«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn Systemit-people
 
Visualization of Supervised Learning with {arules} + {arulesViz}
Visualization of Supervised Learning with {arules} + {arulesViz}Visualization of Supervised Learning with {arules} + {arulesViz}
Visualization of Supervised Learning with {arules} + {arulesViz}Takashi J OZAKI
 
Groovy puzzlers по русски с Joker 2014
Groovy puzzlers по русски с Joker 2014Groovy puzzlers по русски с Joker 2014
Groovy puzzlers по русски с Joker 2014Baruch Sadogursky
 
大量地区化解决方案V5
大量地区化解决方案V5大量地区化解决方案V5
大量地区化解决方案V5bqconf
 
The Ring programming language version 1.5.2 book - Part 66 of 181
The Ring programming language version 1.5.2 book - Part 66 of 181The Ring programming language version 1.5.2 book - Part 66 of 181
The Ring programming language version 1.5.2 book - Part 66 of 181Mahmoud Samir Fayed
 
Introducción a Elixir
Introducción a ElixirIntroducción a Elixir
Introducción a ElixirSvet Ivantchev
 
Haskellで学ぶ関数型言語
Haskellで学ぶ関数型言語Haskellで学ぶ関数型言語
Haskellで学ぶ関数型言語ikdysfm
 
WordPress Cuztom Helper
WordPress Cuztom HelperWordPress Cuztom Helper
WordPress Cuztom Helperslicejack
 

La actualidad más candente (20)

Clustering com numpy e cython
Clustering com numpy e cythonClustering com numpy e cython
Clustering com numpy e cython
 
Groovy puzzlers jug-moscow-part 2
Groovy puzzlers jug-moscow-part 2Groovy puzzlers jug-moscow-part 2
Groovy puzzlers jug-moscow-part 2
 
RxSwift 시작하기
RxSwift 시작하기RxSwift 시작하기
RxSwift 시작하기
 
{tidytext}と{RMeCab}によるモダンな日本語テキスト分析
{tidytext}と{RMeCab}によるモダンな日本語テキスト分析{tidytext}と{RMeCab}によるモダンな日本語テキスト分析
{tidytext}と{RMeCab}によるモダンな日本語テキスト分析
 
Lập trình Python cơ bản
Lập trình Python cơ bảnLập trình Python cơ bản
Lập trình Python cơ bản
 
Python avanzado - parte 1
Python avanzado - parte 1Python avanzado - parte 1
Python avanzado - parte 1
 
1024+ Seconds of JS Wizardry - JSConf.eu 2013
1024+ Seconds of JS Wizardry - JSConf.eu 20131024+ Seconds of JS Wizardry - JSConf.eu 2013
1024+ Seconds of JS Wizardry - JSConf.eu 2013
 
Useful javascript
Useful javascriptUseful javascript
Useful javascript
 
밑바닥부터 시작하는 의료 AI
밑바닥부터 시작하는 의료 AI밑바닥부터 시작하는 의료 AI
밑바닥부터 시작하는 의료 AI
 
Slaying the Dragon: Implementing a Programming Language in Ruby
Slaying the Dragon: Implementing a Programming Language in RubySlaying the Dragon: Implementing a Programming Language in Ruby
Slaying the Dragon: Implementing a Programming Language in Ruby
 
Tokyo APAC Groundbreakers tour - The Complete Java Developer
Tokyo APAC Groundbreakers tour - The Complete Java DeveloperTokyo APAC Groundbreakers tour - The Complete Java Developer
Tokyo APAC Groundbreakers tour - The Complete Java Developer
 
«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System
«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System
«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System
 
Visualization of Supervised Learning with {arules} + {arulesViz}
Visualization of Supervised Learning with {arules} + {arulesViz}Visualization of Supervised Learning with {arules} + {arulesViz}
Visualization of Supervised Learning with {arules} + {arulesViz}
 
Groovy puzzlers по русски с Joker 2014
Groovy puzzlers по русски с Joker 2014Groovy puzzlers по русски с Joker 2014
Groovy puzzlers по русски с Joker 2014
 
大量地区化解决方案V5
大量地区化解决方案V5大量地区化解决方案V5
大量地区化解决方案V5
 
The Ring programming language version 1.5.2 book - Part 66 of 181
The Ring programming language version 1.5.2 book - Part 66 of 181The Ring programming language version 1.5.2 book - Part 66 of 181
The Ring programming language version 1.5.2 book - Part 66 of 181
 
Introducción a Elixir
Introducción a ElixirIntroducción a Elixir
Introducción a Elixir
 
Haskellで学ぶ関数型言語
Haskellで学ぶ関数型言語Haskellで学ぶ関数型言語
Haskellで学ぶ関数型言語
 
WordPress Cuztom Helper
WordPress Cuztom HelperWordPress Cuztom Helper
WordPress Cuztom Helper
 
Fact, Fiction, and FP
Fact, Fiction, and FPFact, Fiction, and FP
Fact, Fiction, and FP
 

Destacado

POWER POINT PRESENTATION ON STATE BANK OF INDIA AND ITS SUBSIDIARIES
POWER POINT PRESENTATION ON STATE BANK OF INDIA AND ITS SUBSIDIARIESPOWER POINT PRESENTATION ON STATE BANK OF INDIA AND ITS SUBSIDIARIES
POWER POINT PRESENTATION ON STATE BANK OF INDIA AND ITS SUBSIDIARIESGandham Rajesh
 
International Women's Day 2016
International Women's Day 2016International Women's Day 2016
International Women's Day 2016Thoughtworks
 
International Women's Day March 8
International Women's Day March 8International Women's Day March 8
International Women's Day March 8maditabalnco
 
International Women's Day
International Women's DayInternational Women's Day
International Women's Daymaditabalnco
 
International Women’s Day Slideshow
International Women’s Day SlideshowInternational Women’s Day Slideshow
International Women’s Day SlideshowDaniel R. Wood
 
International Women’s Day
International Women’s DayInternational Women’s Day
International Women’s DayMaribel Alvarez
 
International Women’S Day
International Women’S DayInternational Women’S Day
International Women’S Daymfresnillo
 
UPS Overview November 1, 2017
UPS Overview November 1, 2017UPS Overview November 1, 2017
UPS Overview November 1, 2017UPS IR
 

Destacado (12)

Women's Day 2011
Women's Day 2011Women's Day 2011
Women's Day 2011
 
POWER POINT PRESENTATION ON STATE BANK OF INDIA AND ITS SUBSIDIARIES
POWER POINT PRESENTATION ON STATE BANK OF INDIA AND ITS SUBSIDIARIESPOWER POINT PRESENTATION ON STATE BANK OF INDIA AND ITS SUBSIDIARIES
POWER POINT PRESENTATION ON STATE BANK OF INDIA AND ITS SUBSIDIARIES
 
International Women's Day 2016
International Women's Day 2016International Women's Day 2016
International Women's Day 2016
 
International Women's Day March 8
International Women's Day March 8International Women's Day March 8
International Women's Day March 8
 
International Women's Day
International Women's DayInternational Women's Day
International Women's Day
 
Happy women's day
Happy women's dayHappy women's day
Happy women's day
 
International Women’s Day Slideshow
International Women’s Day SlideshowInternational Women’s Day Slideshow
International Women’s Day Slideshow
 
Women's day ppt
Women's day pptWomen's day ppt
Women's day ppt
 
International Women’s Day
International Women’s DayInternational Women’s Day
International Women’s Day
 
Women's day
Women's dayWomen's day
Women's day
 
International Women’S Day
International Women’S DayInternational Women’S Day
International Women’S Day
 
UPS Overview November 1, 2017
UPS Overview November 1, 2017UPS Overview November 1, 2017
UPS Overview November 1, 2017
 

Similar a Python 1

Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesLearn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesMatt Harrison
 
Τα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την PythonΤα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την PythonMoses Boudourides
 
A Few of My Favorite (Python) Things
A Few of My Favorite (Python) ThingsA Few of My Favorite (Python) Things
A Few of My Favorite (Python) ThingsMichael Pirnat
 
Ruby Language - A quick tour
Ruby Language - A quick tourRuby Language - A quick tour
Ruby Language - A quick touraztack
 
An overview of Python 2.7
An overview of Python 2.7An overview of Python 2.7
An overview of Python 2.7decoupled
 
Python 내장 함수
Python 내장 함수Python 내장 함수
Python 내장 함수용 최
 
pa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text Processingpa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text ProcessingRodrigo Senra
 
Idioms in swift 2016 05c
Idioms in swift 2016 05cIdioms in swift 2016 05c
Idioms in swift 2016 05cKaz Yoshikawa
 
Python 101++: Let's Get Down to Business!
Python 101++: Let's Get Down to Business!Python 101++: Let's Get Down to Business!
Python 101++: Let's Get Down to Business!Paige Bailey
 
The Vanishing Pattern: from iterators to generators in Python
The Vanishing Pattern: from iterators to generators in PythonThe Vanishing Pattern: from iterators to generators in Python
The Vanishing Pattern: from iterators to generators in PythonOSCON Byrum
 
GE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python ProgrammingGE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python ProgrammingMuthu Vinayagam
 
Stupid Awesome Python Tricks
Stupid Awesome Python TricksStupid Awesome Python Tricks
Stupid Awesome Python TricksBryan Helmig
 
Frege - consequently functional programming for the JVM
Frege - consequently functional programming for the JVMFrege - consequently functional programming for the JVM
Frege - consequently functional programming for the JVMDierk König
 
Refactoring to Macros with Clojure
Refactoring to Macros with ClojureRefactoring to Macros with Clojure
Refactoring to Macros with ClojureDmitry Buzdin
 
Byterun, a Python bytecode interpreter - Allison Kaptur at NYCPython
Byterun, a Python bytecode interpreter - Allison Kaptur at NYCPythonByterun, a Python bytecode interpreter - Allison Kaptur at NYCPython
Byterun, a Python bytecode interpreter - Allison Kaptur at NYCPythonakaptur
 
Python fundamentals - basic | WeiYuan
Python fundamentals - basic | WeiYuanPython fundamentals - basic | WeiYuan
Python fundamentals - basic | WeiYuanWei-Yuan Chang
 
Programming python quick intro for schools
Programming python quick intro for schoolsProgramming python quick intro for schools
Programming python quick intro for schoolsDan Bowen
 
Ruby is Awesome
Ruby is AwesomeRuby is Awesome
Ruby is AwesomeAstrails
 

Similar a Python 1 (20)

Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesLearn 90% of Python in 90 Minutes
Learn 90% of Python in 90 Minutes
 
Τα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την PythonΤα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την Python
 
A Few of My Favorite (Python) Things
A Few of My Favorite (Python) ThingsA Few of My Favorite (Python) Things
A Few of My Favorite (Python) Things
 
Ruby Language - A quick tour
Ruby Language - A quick tourRuby Language - A quick tour
Ruby Language - A quick tour
 
An overview of Python 2.7
An overview of Python 2.7An overview of Python 2.7
An overview of Python 2.7
 
A tour of Python
A tour of PythonA tour of Python
A tour of Python
 
Python 내장 함수
Python 내장 함수Python 내장 함수
Python 내장 함수
 
pa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text Processingpa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text Processing
 
Idioms in swift 2016 05c
Idioms in swift 2016 05cIdioms in swift 2016 05c
Idioms in swift 2016 05c
 
Python 101++: Let's Get Down to Business!
Python 101++: Let's Get Down to Business!Python 101++: Let's Get Down to Business!
Python 101++: Let's Get Down to Business!
 
The Vanishing Pattern: from iterators to generators in Python
The Vanishing Pattern: from iterators to generators in PythonThe Vanishing Pattern: from iterators to generators in Python
The Vanishing Pattern: from iterators to generators in Python
 
dplyr
dplyrdplyr
dplyr
 
GE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python ProgrammingGE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python Programming
 
Stupid Awesome Python Tricks
Stupid Awesome Python TricksStupid Awesome Python Tricks
Stupid Awesome Python Tricks
 
Frege - consequently functional programming for the JVM
Frege - consequently functional programming for the JVMFrege - consequently functional programming for the JVM
Frege - consequently functional programming for the JVM
 
Refactoring to Macros with Clojure
Refactoring to Macros with ClojureRefactoring to Macros with Clojure
Refactoring to Macros with Clojure
 
Byterun, a Python bytecode interpreter - Allison Kaptur at NYCPython
Byterun, a Python bytecode interpreter - Allison Kaptur at NYCPythonByterun, a Python bytecode interpreter - Allison Kaptur at NYCPython
Byterun, a Python bytecode interpreter - Allison Kaptur at NYCPython
 
Python fundamentals - basic | WeiYuan
Python fundamentals - basic | WeiYuanPython fundamentals - basic | WeiYuan
Python fundamentals - basic | WeiYuan
 
Programming python quick intro for schools
Programming python quick intro for schoolsProgramming python quick intro for schools
Programming python quick intro for schools
 
Ruby is Awesome
Ruby is AwesomeRuby is Awesome
Ruby is Awesome
 

Más de Ramin Najjarbashi

وبینار روز آزادی نرم افزار ۱۴۰۰
وبینار روز آزادی نرم افزار ۱۴۰۰وبینار روز آزادی نرم افزار ۱۴۰۰
وبینار روز آزادی نرم افزار ۱۴۰۰Ramin Najjarbashi
 
Method for Two Dimensional Honeypot in a Web Application
Method for Two Dimensional Honeypot in a Web ApplicationMethod for Two Dimensional Honeypot in a Web Application
Method for Two Dimensional Honeypot in a Web ApplicationRamin Najjarbashi
 
آشنایی با جرم‌یابی قانونی رایانه‌ای
آشنایی با جرم‌یابی قانونی رایانه‌ایآشنایی با جرم‌یابی قانونی رایانه‌ای
آشنایی با جرم‌یابی قانونی رایانه‌ایRamin Najjarbashi
 
جرم‌یابی رایانه‌ای
جرم‌یابی رایانه‌ایجرم‌یابی رایانه‌ای
جرم‌یابی رایانه‌ایRamin Najjarbashi
 

Más de Ramin Najjarbashi (9)

وبینار روز آزادی نرم افزار ۱۴۰۰
وبینار روز آزادی نرم افزار ۱۴۰۰وبینار روز آزادی نرم افزار ۱۴۰۰
وبینار روز آزادی نرم افزار ۱۴۰۰
 
Method for Two Dimensional Honeypot in a Web Application
Method for Two Dimensional Honeypot in a Web ApplicationMethod for Two Dimensional Honeypot in a Web Application
Method for Two Dimensional Honeypot in a Web Application
 
آشنایی با جرم‌یابی قانونی رایانه‌ای
آشنایی با جرم‌یابی قانونی رایانه‌ایآشنایی با جرم‌یابی قانونی رایانه‌ای
آشنایی با جرم‌یابی قانونی رایانه‌ای
 
جرم‌یابی رایانه‌ای
جرم‌یابی رایانه‌ایجرم‌یابی رایانه‌ای
جرم‌یابی رایانه‌ای
 
Git 1
Git 1Git 1
Git 1
 
Git
GitGit
Git
 
Software Freedom Day
Software Freedom DaySoftware Freedom Day
Software Freedom Day
 
Hackathon
HackathonHackathon
Hackathon
 
Python (part 0)
Python (part 0)Python (part 0)
Python (part 0)
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 

Último (20)

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 

Python 1

  • 2. python(p1) Presenter : Ramin Najjarbashi Email: ramin.najarbashi@ .com
  • 3. python(p1) Presenter : Ramin Najjarbashi Email: ramin.najarbashi@ .com
  • 4.
  • 6. Who am I? ● Farhamg.Name ● Robocup Server 2D ● GNegar ● BadTag ● BlueWay ● UMS ● Xbuilder ● ...
  • 7. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 8. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 9. ● Guido van Rossum history
  • 10. ● Guido van Rossum history https://soundcloud.com/mashhadsoftwaretalks http://www.slideshare.net/ramin311/python-part-0
  • 12. Hello world printprint ""hello worldhello world""
  • 13. from interpreter $ python$ python >>>>>>print "print "hello worldhello world"" hello worldhello world
  • 14. Python 3 $ python$ python >>>>>>print ("print ("hello worldhello world")") hello worldhello world
  • 15. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 17. repl $ python$ python # ...# ... >>>>>> 2 + 22 + 2 # Read, Eval# Read, Eval 44 # Print# Print >>>>>> # Loop# Loop
  • 21. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 25. Mutable >>>>>> bb == [ ][ ] >>>>>> idid ((bb)) 140675605442000140675605442000 >>>>>> bb .. appendappend(( 33 )) >>>>>> bb [3][3] >>>>>> idid ((bb)) 140675605442000140675605442000 # SAME!# SAME!
  • 26. Immutable >>>>>> aa == 44 >>>>>> idid ((aa)) 64068966406896 >>>>>> aa == a + 1a + 1 >>>>>> idid ((aa)) 64068726406872 # DIFFERENT!# DIFFERENT!
  • 28. Variables >>>>>> a =a = 44 # Integer# Integer >>>>>> b =b = 5.65.6 ## FloatFloat >>>>>> c =c = “hello”“hello” ## StringString >>>>>> d =d = “4”“4” ## rebound to Stringrebound to String
  • 34. PEP Python Enhancement Proposal (similar to JSR in Java) http://www.python.org/dev/peps/
  • 35. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 36. math
  • 37. math Operator Description + addition - subtraction * multiplication / division // integer division % remainder ** power
  • 38. MATH $ python$ python >>>>>> 3/43/4 00 >>>>>> 3/4.3/4. 0.750.75
  • 39. MATH $ python$ python >>>>>> 2.5+3j * 52.5+3j * 5 (2.5+15j)(2.5+15j) >>>>>> 2 ** 1000002 ** 100000 999002093014384...L999002093014384...L (in next slide!)(in next slide!)
  • 40. MATH
  • 41. MATH
  • 42. MATH $ python$ python >>>>>> 0.1 + 0.20.1 + 0.2 0.300000000000000040.30000000000000004
  • 43. MATH $ python$ python >>>>>> 0.1 + 0.20.1 + 0.2 0.300000000000000040.30000000000000004
  • 44. MATH $ python$ python >>>>>> 0.1 + 0.20.1 + 0.2 0.300000000000000040.30000000000000004 You can check out the decimal module if you need more exact answers.
  • 45. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 46. Strings >>>>>> printprint 'He said, "I'He said, "I '' m sorry"'m sorry"' He said, "I'm sorry"He said, "I'm sorry" >>>>>> printprint '''He said, "I'm sorry"''''''He said, "I'm sorry"''' He said, "I'm sorry"He said, "I'm sorry" >>>>>> printprint """He said, "I'm sorry"""He said, "I'm sorry "" """""" He said, "I'm sorry"He said, "I'm sorry" >>>>>> a =a = """He said, "I'm sorry"""He said, "I'm sorry "" """"""
  • 48. Strings >>>>>> #c-like#c-like >>>>>> " %s %s "" %s %s " % (% ( 'hello''hello' ,, 'world''world' )) 'hello world''hello world' >>>>>> #PEP 3101 style#PEP 3101 style >>>>>> "{0} {1}""{0} {1}" . format(. format( 'hello''hello' ,, 'world''world' )) 'hello world''hello world' >>>>>> ''' Comment string''' Comment string .….… multiline! '''multiline! ''' >>>>>>
  • 49. none
  • 54. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 55. function defdef add_numadd_num(x, y=1):(x, y=1): '''Get x, y and return:'''Get x, y and return: X + Y '''X + Y ''' returnreturn x + yx + y >>>>>> printprint add_num(2, 3)add_num(2, 3) 55 >>>>>> printprint add_num(2)add_num(2) 33
  • 57. function defdef add_numadd_num(x, y):(x, y): '''Get x, y and return:'''Get x, y and return: X + Y '''X + Y ''' z = x + yz = x + y returnreturn zz >>>>>> printprint add_num(2, 3)add_num(2, 3) 55
  • 58. def defdef add_num(x, y):add_num(x, y): '''Get x, y and return:'''Get x, y and return: X + Y '''X + Y ''' z = x + yz = x + y return zreturn z >>> print add_num(2, 3)>>> print add_num(2, 3) 55
  • 59. name defdef add_numadd_num(x, y):(x, y): '''Get x, y and return:'''Get x, y and return: X + Y '''X + Y ''' z = x + yz = x + y return zreturn z >>> print add_num(2, 3)>>> print add_num(2, 3) 55
  • 60. parameters def add_numdef add_num(x, y)(x, y):: '''Get x, y and return:'''Get x, y and return: X + Y '''X + Y ''' z = x + yz = x + y return zreturn z >>> print add_num(2, 3)>>> print add_num(2, 3) 55
  • 61. : + indent def add_num(x, y)def add_num(x, y):: --------'''Get x, y and return:'''Get x, y and return: -------- X + Y '''X + Y ''' --------z = x + yz = x + y --------return zreturn z >>> print add_num(2, 3)>>> print add_num(2, 3) 55
  • 62. documentation def add_num(x, y):def add_num(x, y): '''Get x, y and return:'''Get x, y and return: X + Y '''X + Y ''' z = x + yz = x + y return zreturn z >>> print add_num(2, 3)>>> print add_num(2, 3) 55
  • 63. body def add_num(x, y):def add_num(x, y): '''Get x, y and return:'''Get x, y and return: X + Y '''X + Y ''' z = x + yz = x + y return zreturn z >>> print add_num(2, 3)>>> print add_num(2, 3) 55
  • 64. return def add_num(x, y):def add_num(x, y): '''Get x, y and return:'''Get x, y and return: X + Y '''X + Y ''' z = x + yz = x + y returnreturn zz >>> print add_num(2, 3)>>> print add_num(2, 3) 55
  • 67. documentation def add_num(x, y):def add_num(x, y): '''Get x, y and return:'''Get x, y and return: X + Y '''X + Y ''' z = x + yz = x + y return zreturn z >>>>>> helphelp(add_num)(add_num) Help on function add_num in module __main__:Help on function add_num in module __main__: add_num()add_num() Get x,y and return:Get x,y and return: X + YX + Y (END)(END)
  • 68. KLAz
  • 69. KLAz classclass StudentStudent((objectobject):): defdef __init____init__ ((self,self, namename):): self.self.name = namename = name defdef print_nameprint_name ((selfself):): printprint self.self.namename
  • 70. KLAz classclass Student(object):Student(object): def __init__ (self, name):def __init__ (self, name): self.name = nameself.name = name def print_name (self):def print_name (self): print self.nameprint self.name
  • 71. name classclass StudentStudent(object):(object): def __init__ (self, name):def __init__ (self, name): self.name = nameself.name = name def print_name (self):def print_name (self): print self.nameprint self.name
  • 72. type class Studentclass Student((objectobject)):: def __init__ (self, name):def __init__ (self, name): self.name = nameself.name = name def print_name (self):def print_name (self): print self.nameprint self.name
  • 73. : + indent class Student(object)class Student(object):: ----def __init__ (self, name):def __init__ (self, name): --------self.name = nameself.name = name ----def print_name (self):def print_name (self): --------print self.nameprint self.name
  • 74. __Init__ method class Student(object):class Student(object): defdef __init____init__ ((self,self, namename):): self.self.name = namename = name def print_name (self):def print_name (self): print self.nameprint self.name
  • 75. self class Student(object):class Student(object): def __init__ (def __init__ (selfself, name):, name): self.name = nameself.name = name def print_name (self):def print_name (self): print self.nameprint self.name
  • 76. Sub-KLAz classclass KharKhoonKharKhoon(Student):(Student): defdef print_nameprint_name ((selfself):): printprint self.self.name +name + '' CRAMer '''' CRAMer '' >>>>>> m = KharKhoon(“ahmad”)m = KharKhoon(“ahmad”) >>>>>> m.print_name()m.print_name() ahmad CRAMerahmad CRAMer
  • 79. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 80. while >>>>>>whilewhile b < 10:b < 10: …… printprint bb …… a, b = b, a+ba, b = b, a+b …… 11 11 22 33 55 88
  • 81. while >>>>>>whilewhile b < 10:b < 10: …… print bprint b …… a, b = b, a+ba, b = b, a+b …… 11 11 22 33 55 88
  • 82. while >>>while>>>while b < 10b < 10:: …… print bprint b …… a, b = b, a+ba, b = b, a+b …… 11 11 22 33 55 88
  • 83. while >>>while b < 10>>>while b < 10:: ……--------print bprint b ……--------a, b = b, a+ba, b = b, a+b …… 11 11 22 33 55 88
  • 84. while >>>while b < 10:>>>while b < 10: …… printprint bb …… a, b = b, a+ba, b = b, a+b …… 11 11 22 33 55 88
  • 85. while >>>while b < 10:>>>while b < 10: …… print bprint b …… a,a, b =b = b,b, a+ba+b …… 11 11 22 33 55 88
  • 87. if >>>>>>ifif b < 10:b < 10: …… ifif b > 8:b > 8: …… printprint '9''9'
  • 88. if >>>>>>ifif b < 10b < 10 andand b > 8:b > 8: …… printprint '9''9'
  • 89. if >>>>>>ifif 8 < b < 108 < b < 10:: …… printprint '9''9'
  • 90. if-else >>>>>>ifif b >= 10:b >= 10: …… printprint 'big''big' …… elifelif b =< 8:b =< 8: …… printprint 'small''small' …… elseelse:: …… printprint '9''9'
  • 91. if-else >>>>>>ifif b >= 10:b >= 10: …… print 'big'print 'big' …… elif b =< 8:elif b =< 8: …… print 'small'print 'small' …… else:else: …… print '9'print '9'
  • 92. if-else >>>if>>>if b >= 10b >= 10:: …… print 'big'print 'big' …… elif b =< 8:elif b =< 8: …… print 'small'print 'small' …… else:else: …… print '9'print '9'
  • 93. if-else >>>if b >= 10>>>if b >= 10:: ……--------print 'big'print 'big' …… elif b =< 8:elif b =< 8: ……--------print 'small'print 'small' …… else:else: ……--------print '9'print '9'
  • 94. if-else >>>if b >= 10:>>>if b >= 10: …… printprint 'big''big' …… elif b =< 8:elif b =< 8: …… print 'small'print 'small' …… else:else: …… print '9'print '9'
  • 95. if-else >>>if b >= 10:>>>if b >= 10: …… print 'big'print 'big' …… elifelif b =< 8:b =< 8: …… printprint 'small''small' …… else:else: …… print '9'print '9'
  • 96. if-else >>>if b >= 10:>>>if b >= 10: …… print 'big'print 'big' …… elifelif b =< 8:b =< 8: …… print 'small'print 'small' …… else:else: …… print '9'print '9'
  • 97. if-else >>>if b >= 10:>>>if b >= 10: …… print 'big'print 'big' …… elifelif b =< 8b =< 8:: …… print 'small'print 'small' …… else:else: …… print '9'print '9'
  • 98. if-else >>>if b >= 10:>>>if b >= 10: …… print 'big'print 'big' …… elif b =< 8:elif b =< 8: …… printprint 'small''small' …… else:else: …… print '9'print '9'
  • 99. if-else >>>if b >= 10:>>>if b >= 10: …… print 'big'print 'big' …… elif b =< 8:elif b =< 8: …… print 'small'print 'small' …… elseelse:: …… printprint '9''9'
  • 100. if-else >>>if b >= 10:>>>if b >= 10: …… print 'big'print 'big' …… elif b =< 8:elif b =< 8: …… print 'small'print 'small' …… elseelse:: …… print '9'print '9'
  • 101. for >>>>>> forfor nn inin [2, 3, 4, 5, 6, 7, 8, 9]:[2, 3, 4, 5, 6, 7, 8, 9]: …… forfor xx inin rangerange(2, n):(2, n): …… ifif n % x == 0:n % x == 0: ...... printprint nn ...... breakbreak ...... elseelse:: ...... printprint n,n, 'is a prime''is a prime'
  • 102. for >>>>>> forfor n in [2, 3, 4, 5, 6, 7, 8, 9]:n in [2, 3, 4, 5, 6, 7, 8, 9]: …… for x in range(2, n):for x in range(2, n): …… if n % x == 0:if n % x == 0: ...... print nprint n ...... breakbreak ...... else:else: ...... print n, 'is a prime'print n, 'is a prime'
  • 103. for >>> for>>> for nn in [2, 3, 4, 5, 6, 7, 8, 9]:in [2, 3, 4, 5, 6, 7, 8, 9]: …… for x in range(2, n):for x in range(2, n): …… if n % x == 0:if n % x == 0: ...... print nprint n ...... breakbreak ...... else:else: ...... print n, 'is a prime'print n, 'is a prime'
  • 104. for >>> for n>>> for n inin [2, 3, 4, 5, 6, 7, 8, 9]:[2, 3, 4, 5, 6, 7, 8, 9]: …… for x in range(2, n):for x in range(2, n): …… if n % x == 0:if n % x == 0: ...... print nprint n ...... breakbreak ...... else:else: ...... print n, 'is a prime'print n, 'is a prime'
  • 105. for >>> for n in>>> for n in [2, 3, 4, 5, 6, 7, 8, 9][2, 3, 4, 5, 6, 7, 8, 9]:: …… for x in range(2, n):for x in range(2, n): …… if n % x == 0:if n % x == 0: ...... print nprint n ...... breakbreak ...... else:else: ...... print n, 'is a prime'print n, 'is a prime'
  • 106. for >>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]: …… forfor xx inin rangerange(2, n):(2, n): …… ifif n % x == 0:n % x == 0: ...... printprint nn ...... breakbreak ...... elseelse:: ...... printprint n,n, 'is a prime''is a prime'
  • 107. for >>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]: …… for x infor x in rangerange(2, n)(2, n):: …… if n % x == 0:if n % x == 0: ...... print nprint n ...... breakbreak ...... else:else: ...... print n, 'is a prime'print n, 'is a prime'
  • 108. for >>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]: …… for x in range(2, n):for x in range(2, n): …… if n % x == 0:if n % x == 0: ...... print nprint n ...... breakbreak ...... else:else: ...... print n, 'is a prime'print n, 'is a prime'
  • 109. for >>>>>> dict = {dict = { 'a''a':1 ,:1 , 'b''b'::'AB''AB',, 'c''c':[1,{}] }:[1,{}] } >>>>>>forfor key, valkey, val inin dict.items()dict.items():: …… printprint key, valkey, val a 1a 1 b ABb AB c [1,{}]c [1,{}]
  • 110. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 111. Input file >>>>>>fin = (fin = ('foo.txt''foo.txt')) >>>>>>forfor lineline inin finfin:: …… printprint lineline >>>>>>fin.close()fin.close()
  • 112. Input file >>>>>>fin = (fin = ('foo.txt''foo.txt')) >>>for line in fin:>>>for line in fin: …… print lineprint line >>>fin.close()>>>fin.close()
  • 113. Input file >>>fin = ('foo.txt')>>>fin = ('foo.txt') >>>>>>forfor lineline inin finfin:: …… printprint lineline >>>fin.close()>>>fin.close()
  • 114. Input file >>>fin = ('foo.txt')>>>fin = ('foo.txt') >>>for line in fin:>>>for line in fin: …… print lineprint line >>>>>>fin.close()fin.close()
  • 115. Output file >>>>>>fout = (fout = ('foo.txt''foo.txt',,'w''w')) >>>>>>fout.writefout.write(('Hello world!''Hello world!')) >>>>>>fout.close()fout.close()
  • 116. Output file >>>>>>fout = (fout = ('foo.txt''foo.txt',,'w''w')) >>>fout.write('Hello world!')>>>fout.write('Hello world!') >>>fout.close()>>>fout.close()
  • 117. Output file >>>fout = ('foo.txt','w')>>>fout = ('foo.txt','w') >>>>>>fout.write(fout.write('Hello world!''Hello world!')) >>>fout.close()>>>fout.close()
  • 118. Output file >>>fout = ('foo.txt','w')>>>fout = ('foo.txt','w') >>>fout.write('Hello world!'>>>fout.write('Hello world!')) >>>>>>fout.close()fout.close()
  • 119. file
  • 120. Contents● What is Python? ● Hello world! ● RUN SCRIPTS! ● What is the object in Python? ● Python like as calculator! ● String and other types in Python! ● Function & Classes! ● Repeat the decision in Program! ● I/O files ;D ● HEEEEEEEEEEEEEEEEEEEEEELP!
  • 124. trace ●● h - helph - help ●● s - step intos - step into ●● n - nextn - next ●● c - continuec - continue ●● w - where am I (in stack)?w - where am I (in stack)? ●● l - list code around mel - list code around me
  • 125. trace hh - help- help ss - step into- step into nn - next- next cc - continue- continue ww - where am I (in stack)?- where am I (in stack)? ll - list code around me- list code around me
  • 126. trace trytry:: f =f = openopen(arg, 'r')(arg, 'r') exceptexcept IOErrorIOError:: printprint 'cannot open''cannot open', arg, arg elseelse:: printprint argarg f.close()f.close()
  • 128. Dir & help >>>>>> dirdir([])([]) ['__add__', '__class__',['__add__', '__class__', '__contains__',...'__contains__',... '__iter__',... '__len__',... ,'__iter__',... '__len__',... , 'append', 'count','append', 'count', 'extend', 'index', 'insert','extend', 'index', 'insert', 'pop', 'remove','pop', 'remove', 'reverse', 'sort']'reverse', 'sort']
  • 131. Google
  • 136. -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GE/IT/P/SS d---(-)@?>--pu s--(): a- C++++(+++)$@>++ ULC++++(+++)@ P+() L+++(+++)$@>+++ !E--- !W+++(++)@>+ !N* !o K-- !w---? !O---? M-- !V- PS++(++)@>+ !PE Y? PGP++(++)@>+++ !t !5 !X R+ tv? b++++(+++) DI D+++@ G++@ e+++@ h++ r---?>$ !y-- ------END GEEK CODE BLOCK------