print("Python was started in 1989 by \"Guido\".")
print("Python is free and easy to learn.")
print("Python is free and easy to learn.")
2016-02-15
3.0
print(45678 + 0x12fd2)
print ('Learn Python in imooc')
print (100 < 99)
print (0xff == 255)
print(45678 + 0x12fd2)
print ('Learn Python in imooc')
print (100 < 99)
print (0xff == 255)
2016-02-15
d = { 'Adam': 95, 'Lisa': 85, 'Bart': 59, 'Paul': 74 }
sum = 0.0
for k, v in d.items():
sum = sum + v
print k,":",v
print 'average', ':', sum/len(d)
sum = 0.0
for k, v in d.items():
sum = sum + v
print k,":",v
print 'average', ':', sum/len(d)
2016-02-13
print [a*100+b*10+c for a in range(1,10) for b in range(0,10) for c in range(0,10) if a==c]
2016-02-13