'''
This code use string array syntax
'''
words=[]
words.append("Life")
words.append("is")
words.append("very")
words.append("easy")
words.append("with")
words.append("Python")
for word in words:
print word
wordLed=len(words)
for i in range(0,wordLed):
print words[i]
print words
Output:
Life is very easy with Python Life is very easy with Python ['Life', 'is', 'very', 'easy', 'with', 'Python']

0 comments:
Post a Comment