Python

Python

 

<!—-Due to time restraints we will be  finishing python starting at Unit 8:Loops—-!>

LOOPS

1///While you’re here//

count = 0

if count < 5:
print “Hello, I am an if statement and count is”, count

while count < 5:
print “Hello, I am a while and count is”, count
count += 1

Everything in blue is the original code.  To make the statements in the code count to 9 all you need to do is change the 5’s to 10

Advertisements