text = "9"
term = "9 "
info = "Toys"
hue = ['R','e','d','\0']
info = " Balloons"
color = "".join(hue)
text = text + term + color + info
print text
name = raw_input("Please enter your full name : ")
print "Welcome ",name
name = raw_input("Please re-enter your full name : ")
print "Thanks, ",name
term = "100"
number = 100
stream = term
num = stream
num = number / 4
print "Integer value: ",num
stream = ""
stream = number
text = stream
text = str(text) + " Per Cent"
print "String value: ",text
#There is no such functions in python like size, capacity and empty
lang = "C++"
term = "Programming"
text = "C++ Programming"
print "Concatinated: ",lang + term
print "Original: ",lang
#print "Appended: ",lang.append(term) there in no append method for string in python
print "Original: ",lang
print "Differ: ",(lang==term)
print "Match: ",(lang==text)
# print "Match: ",(lang.compare(text)) there in no compare method for string in python
# print "Differ: ",(lang.compare(term)) there in no compare method for string in python
# print "Lower ASCII: ",lang.compare("zzzzz") there in no compare method for string in python
text = "Always laugh when you can. It\’s cheap medicine."
front = text
print "Front: ",front
front = text
print "Front: ",front
back = text
print "Back: ",back
back = front
print "Front: ",front
print "Back: ",back
#There is no option to assing specific length in python also no swap function
text = "I can resist anything but temptation."
num = text.find("resist",0)
print "Position: ",num
num= text.find("nonsuch",0)
print "Result: ",num
num= text.find("I",0)
print "First I",num
num= text.find("i",text.find("I",0))
print "First not I",num
num= text.rfind("t",0)
print "Last t: ",num
num= text.rfind("t",text.rfind("t",0))
print "Last not t: ",num
text = "I do like the seaside"
print "Original: ",text
# text.insert(10,"to be aside") There is no insert method in python
print "Inserted: ",text
# text.erase(2,3) There is no erase method in python
print "Erased: ",text
text = text.replace("the seaside","strolling by the sea")
print "Replaced: ",text
print "Copied: ",text[10:19]
print "Last character: ",text[len(text)-1]