paddockpass/edx-python/w1/4.py
Christopher Talib 041e82774f Adding edx work
2019-07-03 12:20:01 +02:00

9 lines
215 B
Python

count = 0
phrase = "hello, world"
for iteration in range(5):
index = 0
while index < len(phrase):
count += 1
index += 1
print("Iteration " + str(iteration) + "; count is: " + str(count))