SlideShare a Scribd company logo
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

More Related Content

What's hot

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 2
Evgeny Borisov
 
RxSwift 시작하기
RxSwift 시작하기RxSwift 시작하기
RxSwift 시작하기
Suyeol Jeon
 
{tidytext}と{RMeCab}によるモダンな日本語テキスト分析
{tidytext}と{RMeCab}によるモダンな日本語テキスト分析{tidytext}と{RMeCab}によるモダンな日本語テキスト分析
{tidytext}と{RMeCab}によるモダンな日本語テキスト分析
Takashi Kitano
 
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
Nguyen Thi Lan Phuong
 
Python avanzado - parte 1
Python avanzado - parte 1Python avanzado - parte 1
Python avanzado - parte 1
coto
 
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
Martin Kleppe
 
Useful javascript
Useful javascriptUseful javascript
Useful javascriptLei Kang
 
밑바닥부터 시작하는 의료 AI
밑바닥부터 시작하는 의료 AI밑바닥부터 시작하는 의료 AI
밑바닥부터 시작하는 의료 AI
NAVER 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 Ruby
Jason 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 Developer
Connor McDonald
 
«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System
«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System
«PyWat. А хорошо ли вы знаете Python?» Александр Швец, Marilyn System
it-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 2014
Baruch Sadogursky
 
大量地区化解决方案V5
大量地区化解决方案V5大量地区化解决方案V5
大量地区化解决方案V5
bqconf
 
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
Mahmoud Samir Fayed
 
Introducción a Elixir
Introducción a ElixirIntroducción a Elixir
Introducción a Elixir
Svet Ivantchev
 
Haskellで学ぶ関数型言語
Haskellで学ぶ関数型言語Haskellで学ぶ関数型言語
Haskellで学ぶ関数型言語
ikdysfm
 
WordPress Cuztom Helper
WordPress Cuztom HelperWordPress Cuztom Helper
WordPress Cuztom Helper
slicejack
 
Fact, Fiction, and FP
Fact, Fiction, and FPFact, Fiction, and FP
Fact, Fiction, and FP
Brian Lonsdorf
 

What's hot (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
 

Viewers also liked

Women's Day 2011
Women's Day 2011Women'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
Gandham Rajesh
 
International Women's Day 2016
International Women's Day 2016International Women's Day 2016
International Women's Day 2016
Thoughtworks
 
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 Day
maditabalnco
 
Happy women's day
Happy women's dayHappy women's day
Happy women's day
Huymask Nguyễn
 
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 Day
Maribel Alvarez
 
International Women’S Day
International Women’S DayInternational Women’S Day
International Women’S Day
mfresnillo
 
UPS Overview November 1, 2017
UPS Overview November 1, 2017UPS Overview November 1, 2017
UPS Overview November 1, 2017
UPS IR
 

Viewers also liked (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 to 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 Minutes
Matt Harrison
 
Τα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την PythonΤα Πολύ Βασικά για την Python
Τα Πολύ Βασικά για την Python
Moses 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) Things
Michael 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.7
decoupled
 
A tour of Python
A tour of PythonA tour of Python
A tour of Python
Aleksandar Veselinovic
 
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
Rodrigo Senra
 
Idioms in swift 2016 05c
Idioms in swift 2016 05cIdioms in swift 2016 05c
Idioms in swift 2016 05c
Kaz 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 Python
OSCON Byrum
 
dplyr
dplyrdplyr
GE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python ProgrammingGE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python Programming
Muthu Vinayagam
 
Stupid Awesome Python Tricks
Stupid Awesome Python TricksStupid Awesome Python Tricks
Stupid Awesome Python Tricks
Bryan 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 JVM
Dierk 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 NYCPython
akaptur
 
Python fundamentals - basic | WeiYuan
Python fundamentals - basic | WeiYuanPython fundamentals - basic | WeiYuan
Python fundamentals - basic | WeiYuan
Wei-Yuan Chang
 
Programming python quick intro for schools
Programming python quick intro for schoolsProgramming python quick intro for schools
Programming python quick intro for schools
Dan Bowen
 
Ruby is Awesome
Ruby is AwesomeRuby is Awesome
Ruby is Awesome
Astrails
 

Similar to 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
 

More from 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 Application
Ramin Najjarbashi
 
آشنایی با جرم‌یابی قانونی رایانه‌ای
آشنایی با جرم‌یابی قانونی رایانه‌ایآشنایی با جرم‌یابی قانونی رایانه‌ای
آشنایی با جرم‌یابی قانونی رایانه‌ای
Ramin Najjarbashi
 
جرم‌یابی رایانه‌ای
جرم‌یابی رایانه‌ایجرم‌یابی رایانه‌ای
جرم‌یابی رایانه‌ای
Ramin Najjarbashi
 
Git 1
Git 1Git 1
Git
GitGit
Software Freedom Day
Software Freedom DaySoftware Freedom Day
Software Freedom Day
Ramin Najjarbashi
 
Python (part 0)
Python (part 0)Python (part 0)
Python (part 0)
Ramin Najjarbashi
 

More from 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)
 

Recently uploaded

From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 

Recently uploaded (20)

From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 

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------