inform=['m','a','d','u','r','a','i']
print "".join(inform)
inform="Thiagaragar"
numb=int(input("No. Of Char To Print "))
print 'print format = %.0',numb,'s'
print inform[0:numb]
inform="Thiagaragar"
numb=int(input("No. Of Char To Print "))
print 'print format = %.0',numb,'s'
print inform[0:numb]
array1='Thiagarajar Engg'
array2=(array1 + '.')[:-1]
print "array1 = ",array1
print "array2 = ",array2
userInput = raw_input("Enter Int: ")
if userInput.isdigit():
print "Number = "+userInput
else:
print userInput,"is not int type"
first="Thiagrajar"
second=first+" Engg."
print "first = ",first
print "second = ",second
string1 = "Hello"
print "len of str is",len(string1)
string2 = " There"
print "string1+string2 is",string1+string2
import array
i=20
size=0
str1 =[]
str2=[]
def readSize():
global size
size=int(input("Enter number of strings : "))
if size<1 or size>i :
readSize()
return
def readArray():
global size
global str1
print "Enter the Strings.."
for k in range(0,size):
m=raw_input()
str1.append(m)
return
def displayArray1():
for index in range(0,size):
print str1[index]
return
def displayArray2():
for index in range(0,size):
print str2[index]
return
def sortedArray():
global str1
global str2
str2= sorted(str1)
return
readSize()
readArray()
print "The unsorted array is.."
displayArray1()
sortedArray()
print "The sorted array is.."
displayArray2()