By: Ben Blake, Andrew Dzambo , Paul Flanagan. Python. Spacing Comments Header Consistency with variables – keep it simple Set all variables equal to zero initially Notes on changes to code – version control
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
By: Ben Blake, Andrew Dzambo, Paul Flanagan
for x in xlist:
y += 1
print y
for station in stations:
for k in range(n):
if logical_expression_1:
# do this block when logical_expression_1 is true
elif logical_expression_2:
# do this block when logical_expression_2 is true
else:
# do this block when neither logical expression above is true
while logical_expression:
# statements to run as long as logical_expression stays true
x = 0
for x in xlist:
if x >= 40:
x += 1
break
else:
x += 1