#input code
print "hello,pyhthon"
print "hello","pyhthon"
print "hello,pyhthon"
print "hello","pyhthon"
2018-04-23
print(45678+0x12fd2)
print("learn python in imooc")
print 100<99
print 0xff ==255
print("learn python in imooc")
print 100<99
print 0xff ==255
2018-04-23
# -*- coding: utf-8 -*-
print r'''静夜思
床前明月光,
疑是地上霜。
举头望明月,
低头思故乡。'''
print r'''静夜思
床前明月光,
疑是地上霜。
举头望明月,
低头思故乡。'''
2018-04-23
print [(x+10*y+100*z) for x in range(1,10) for y in range(0,10) for z in range(0,10) if (x == z)]
2018-04-23
#Enter a code
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
2018-04-23
d = { 'Adam': 95, 'Lisa': 85, 'Bart': 59, 'Paul': 74 }
print sum(d.values())*1.0/len(d)
print sum(d.values())*1.0/len(d)
2018-04-22
#Enter a code
a=(45678)+(0x12fd2)
print(a)
print('Learn Python in imooc')
b=100<99
print(b)
c=0xff==255
print(c)
a=(45678)+(0x12fd2)
print(a)
print('Learn Python in imooc')
b=100<99
print(b)
c=0xff==255
print(c)
2018-04-22
print r'''"To be,or not to be":that is the question.
Whether it's nobler in the mind to suffer.'''
Whether it's nobler in the mind to suffer.'''
2018-04-22
s = 'Python was started in 1989 by \"Guido\".\nPython is free and easy to learn.'
print s
print s
2018-04-22
score = 85
if score>=90:
print 'excellent'
elif score>=80:
print 'good'
elif score>=60:
print 'passed'
else:
print 'failed'
if score>=90:
print 'excellent'
elif score>=80:
print 'good'
elif score>=60:
print 'passed'
else:
print 'failed'
2018-04-22