# Everthing start with a Hello World!print('Hello World')# This is comment.print"I am handsome!"# We can use single quote or double quote for sentence.print('You are pretty!')# Or this way.print# this will print a newline.print'one plus one equal to',(1+1)print'two plus two equals to %d'%(2+2)# %d will be changed to integer.print'1.1 + 2.2 = %d'%(1.1+2.2)print'1.1 + 2.2 = %f'%(1.1+2.2)print'1.1 + 2.2 = %0.4f'%(1.1+2.2)
Hello World
I am handsome!
You are pretty!
one plus one equal to 2
two plus two equals to 4
1.1 + 2.2 = 3
1.1 + 2.2 = 3.300000
1.1 + 2.2 = 3.3000