Python Logo

Ex1~4

print ('Hello World')
# print("哈囉")
print ("Hens", 25 + 30 / 6)
print ("Now I will count the eggs:")
print (3 + 2 + 1 - 5 + 4 % 2 -1 / 4 + 6)

cars = 100
print ("There are" , cars , "cars available.")
#四捨五入
print (round(1.7333)) #it will print 2

Ex5

his_name = 'Zed A. Shaw'
print (f"Let's talk about {his_name}.")