From 6add68fa9536c0ead4b53f092d9dfe0a7de2a8fe Mon Sep 17 00:00:00 2001 From: Eric Douglas Date: Wed, 28 May 2014 10:42:20 -0300 Subject: [PATCH] add missed-condition pattern 01.01.03 --- .../archives/UNIT-01/03-problem-solving/loops.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/03-problem-solving/loops.py b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/03-problem-solving/loops.py index abefa66..d6048ca 100644 --- a/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/03-problem-solving/loops.py +++ b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/03-problem-solving/loops.py @@ -167,3 +167,10 @@ print merge(array1, array2) i = 0 while i < n: print(i) + +# The missed-condition pattern (never end) + +i = n +while i > 0: + print(i) + i += 1