realizată de YAHYA ALNAAMI 10 ani în urmă
360
Mai multe ca aceasta
A mental map on the Python Programming Language
La doc. de G. Swinnen
dummyDir = getcwd()
chdir('/tmp')
number = sin(2)
number = sqrt(2)
website
not
or
and
5**2
conversion
str(myNumber)
list inversion
dummyList.reverse()
list search
dummyList.index()
list sort
dummyList.sort()
list append
dummyList.append()
list go through
for each x in dummyList
list element check
x in dummyList
list repeat
dummyList*5
lists concatenation
List1+List2
list length
len(dummyList)
global fieldGoal
special methods avalaible
string uppercase
dummyStr.upper()
littleText[-3]
Negative index means "backward"
littleText[3]
"Go Patriots !"
Starting index = 0
littleText = "Go Patriots !"
number = 3.14159
number = 5
range(1,10,2)
range(5,10)
range(5)
answer = raw_input("what's your name ?")
while (condition2):
if (condition1):elif(condition2):else:
dummyList = ['cat', 'dog', 'horse']for animal in dummyList: print len(animal)
for x in range(a,b):
Allows default values definitions.