Monday, 22 July 2013

working with Datatype,string

#working with strings
brain="Always look on the bright side of life!"
print brain


Sunday="I spend my Sunday very cool buz i celebrated the pre_independent service of Liberia!"
print  sunday

uncle="Eddie"
aunty="grace"
sister="Clara"
brother="Stanley"

print aunty

quoke='Our trainer\'s health has been restored!'

print quoke

vacation='I\'m sad that sue\'s school is closed'
print vacation

print"python"[4]

print"yarkpawolobuluka"[10]

#working with strings methods
parrot="Norwegan Blue"
print len(parrot)

small_letter =parrot.lower()
print small_letter

big_letter= small_letter.upper()
print big_letter

pi=3.14
total= str(pi)
print total

#working with advance printing
breakfast="spam" + " and "+ "egg"
print breakfast

print "My father brother name is"+ uncle



#working with strings
brain="Always look on the bright side of life!"
print brain


Sunday="I spend my Sunday very cool buz i celebrated the pre_independent service of Liberia!"
print  Sunday

uncle="Eddie"
aunty="grace"
sister="Clara"
brother="sanely"

print aunty

quoke='Our trainer\'s health has been restored!'

print quoke

vacation='I\'m sad that sue\'s school is closed'
print vacation

print"python"[4]

print"yarkpawolobuluka"[10]

#working with strings methods
parrot="Norwegan Blue"
print len(parrot)

small_letter =parrot.lower()
print small_letter

big_letter= small_letter.upper()
print big_letter

pi=3.14
total= str(pi)
print total

#working with advance printing
breakfast="spam" + " and "+ "egg"
print breakfast

print "My father brother name is"+ uncle



No comments:

Post a Comment