diff options
author | Martin <martin@leo.fri1.uni-lj.si> | 2015-09-29 10:30:10 +0200 |
---|---|---|
committer | Martin <martin@leo.fri1.uni-lj.si> | 2015-09-29 10:30:10 +0200 |
commit | 1db5b636325141db84e03f0a72a6e8cc7bcb2ee2 (patch) | |
tree | 186471c5a998c7e483fa3eb1915d86d6aa15fcac /python/problems/while_and_if | |
parent | d06dade8c75dfa5aceacaf1a1b47f61c5fef31c4 (diff) |
Small corrections to text; mostly changing plural form to singular.
Diffstat (limited to 'python/problems/while_and_if')
-rw-r--r-- | python/problems/while_and_if/buy_five/sl.py | 7 | ||||
-rw-r--r-- | python/problems/while_and_if/consumers_anonymous/sl.py | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/python/problems/while_and_if/buy_five/sl.py b/python/problems/while_and_if/buy_five/sl.py index 682edaf..22fa7b4 100644 --- a/python/problems/while_and_if/buy_five/sl.py +++ b/python/problems/while_and_if/buy_five/sl.py @@ -33,8 +33,7 @@ vsota = cena1+cena2+cena3+cena4+cena5 print ("Vsota: " + vsota) </pre>''', '''\ -<p>Rešitev je slaba, saj imamo pet enakih vrstic! Ponavljanje programske kode -pa velja za slabo prakso. Uporabite zanko! </p>'''] +<p>Rešitev je slaba, saj imamo pet enakih vrstic! Uporabite zanko! </p>'''] main_plan = ['''\ <p><b>Plan:</b></p> @@ -73,8 +72,8 @@ while ____: <p>Kakšen je pogoj?</p>''', '''\ -Izmisliti si moramo pogoj, ki bo resničen 5 korakov, potem pa ne -več. Običajni trik v takih primerih je uporaba števca. ''', +Izmisliti si moramo pogoj, ki bo resničen 5 korakov, potem ne +več. Običajni trik je uporaba števca. ''', '''\ Števec je spremenljivka, ki se v zanki vsakič poveča za ena - torej šteje''', diff --git a/python/problems/while_and_if/consumers_anonymous/sl.py b/python/problems/while_and_if/consumers_anonymous/sl.py index 5666216..4b1348b 100644 --- a/python/problems/while_and_if/consumers_anonymous/sl.py +++ b/python/problems/while_and_if/consumers_anonymous/sl.py @@ -111,6 +111,10 @@ Pravilna vsota [%=sum%], pravilno število stvari: [%=count%]'''], <p><b>Odlično!</b>Naloga rešena.</p> Še zanimivost: v while zanki smo negirali ustavitveni pogoj tako, da smo negirali posamezne pogoje in spremenili pogoj <code>or</code> v <code>and</code>. Temu pravimo De Morganov zakon. -'''] +'''], + + 'eof_error':[mod.general_msg['eof_error'], + '''\ +<p>Verjetno se zanka izvede prevečkrat. Preveri pogoj!</p>'''] } |