Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

lists and for loops in python

# This is one of the most commonly used combinations in Python
friends = ['Sam', 'John', 'Anne']
for friend in friends:
    print('Happy New Year, my friend', friend + '!')
print('Done')
Source by www.py4e.com #
 
PREVIOUS NEXT
Tagged: #lists #loops #python
ADD COMMENT
Topic
Name
6+9 =