Wednesday, 24 July 2013

learing Advance printing and Date and time

#Advance printing
"""
name=raw_input("what is your name? ")
gender=raw_input("what is your gender? ")
color=raw_input("enter your favorite color ")

print "Hi %s, you are a %s and you love %s,Today you will learn something new from me!" %(name,gender,color)
"""
#project: Date and time
from datetime import datetime
now=datetime.now()
print now

current_month=now.month
print current_month

present_day=now.day
print present_day

current_year=now.year
print current_year

print "%d/%d/%d" %(current_month,present_day,current_year)

current_time=now.time
print current_time

current_hour=now.hour
print current_hour

current_minute=now.minute
print current_minute

current_second=now.second
print current_second



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



Friday, 12 July 2013

Learing Virables and Datatype

# my variables

body="clothes"
print body

water='fish'
print water

rice='pan'
print rice


x=0.5
print x

# my tip calculator

pizza=17.40
tax=0.03
tip=0.15
lunch=pizza+pizza*tax
payment=lunch+pizza*tip
print payment


Wednesday, 10 July 2013

yeah!Welcome to my Blog

hi readers, welcome to my blog,I am Helena M. Jones born unto the union  of Mr&Mrs Jones born on the nine of August.I am reading Information Technology at U.M.U.