Skip to content

Instantly share code, notes, and snippets.

@Hayyhayy
Last active March 14, 2020 08:25
Show Gist options
  • Select an option

  • Save Hayyhayy/bbdb055be54fa83c155aec1881bac139 to your computer and use it in GitHub Desktop.

Select an option

Save Hayyhayy/bbdb055be54fa83c155aec1881bac139 to your computer and use it in GitHub Desktop.
1. In python terms, the variable friends is a list of three strings, 2. the for loop goes through the list and executes the body once for each of the three strings in the list resulting in thiis output. 3. **for** and **in** are reserved Python keywo
n = 10
while True:
Print(n, end=' ')
n = n - 1
print('Done!')
friends = ['Joseph', 'Glen', 'Sally']
for friend in friends:
print('Happy New Year:', friend)
print('Done!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment