1 print ("hello,world!") 2 sentence = "yyyy" 3 print (sentence.lower()) 4 print (sentence.upper()) 5 6 #print (sentenc) 7 8 #hello,world! 9 #yyyy 10 #YYYY 11 #Traceback (most recent call last): 12 # File "t.py", line 4, in <module> 13 # print (sentenc) 14 # NameError: name 'sentenc' is not defined 15 16 print ('his name is "Li"') 17 18 #his name is "Li" 19 20 first = "a " 21 first_1 ="a" 22 if first == first_1: 23 print ("fit!") 24 else: 25 print ("wrong!") 26 27 second = "b" 28 print " ook"+first.rstrip() + " " +second.title()+"!" 29 30 #wrong! 31 # ooka B! 32 33 p = (2+3)**3 34 Q = 0.1 *3 35 print str(p)+""+str(Q) 36 37 #1250.3