for x in range(1,9):
for y in range(0,10) :
if x<y:
print x*10+y
for y in range(0,10) :
if x<y:
print x*10+y
2016-07-23
print [x*100 + y*10 + z for (int)x in '123456789' for (int)y in '0123456789' for (int)z in '123456789' if x == z]
2016-07-23
name=['Adam','Lisa','Bart']
score=['60','80','90']
j=0
for i in name:
print (i,':',score[j])
j +=1
score=['60','80','90']
j=0
for i in name:
print (i,':',score[j])
j +=1
2016-07-23
x1 = 1
d = 3
n = 100
x100 = x1+d*99
sum=0
for i in range(x1,x1+d*100,d):
sum+=i
print sum
d = 3
n = 100
x100 = x1+d*99
sum=0
for i in range(x1,x1+d*100,d):
sum+=i
print sum
2016-07-23
x1 = 1
d = 3
n = 100
x100 = x1 + (n-1)*d
s = n*(x1 + x100)/2
print s
d = 3
n = 100
x100 = x1 + (n-1)*d
s = n*(x1 + x100)/2
print s
2016-07-23
print("hello,python")
print("hello"+","+"python")
print("hello"+","+"python")
2016-07-23