From bab0b0a2fe8b3aad853740750d4873fb929f5f41 Mon Sep 17 00:00:00 2001
From: Martin Primer, kako NE reševati
+ Primer, kako NE reševati
Rešitev je slaba, saj imamo pet enakih vrstic! Uporabite zanko! Plan: Plan: Kako bi nekaj 5x ponovil? Uporabi zanko Zanka while ima naslednjo sintakso: Zanka
cena1 = float(input('Cena artikla: '))
cena2 = float(input('Cena artikla: '))
@@ -36,7 +36,7 @@ print ("Vsota: " + vsota)
1. Ponavljaj 5x:
2. Preberi ceno.
@@ -45,9 +45,9 @@ main_plan = ['''\
''']
while_clause = ['''\
-while
.while
ima naslednjo sintakso:
while Pogoj:
stavek 1
@@ -62,7 +62,7 @@ našem primeru s stavkom n.
Za večkratno branje želimo uporabiti zanko
''', +Za večkratno branje želimo uporabiti zanko
''', '''\@@ -94,7 +94,7 @@ while stevec < 5: '''] summation = ['''\ -Računanje vsote bo najlažje sproti v zanki.
''', +
Računaj vsoto sproti v zanki.
''', '''\
Izmisli si spremenljivko, ki bo predstavljala vsoto, jo na -- cgit v1.2.1 From ce3b6703c153ba5c827996bfa8fd9bfa85fe2adb Mon Sep 17 00:00:00 2001 From: Timotej Lazar
Date: Thu, 8 Oct 2015 16:02:17 +0200 Subject: Remove unneeded id field from {en,sl}.py files --- python/problems/while_and_if/buy_five/en.py | 1 - python/problems/while_and_if/buy_five/sl.py | 1 - 2 files changed, 2 deletions(-) (limited to 'python/problems/while_and_if/buy_five') diff --git a/python/problems/while_and_if/buy_five/en.py b/python/problems/while_and_if/buy_five/en.py index 7e522da..9ad1f06 100644 --- a/python/problems/while_and_if/buy_five/en.py +++ b/python/problems/while_and_if/buy_five/en.py @@ -1,6 +1,5 @@ # coding=utf-8 -id = 185 name = 'Buy five' slug = 'Buy five' diff --git a/python/problems/while_and_if/buy_five/sl.py b/python/problems/while_and_if/buy_five/sl.py index 8008d91..3dbc9d3 100644 --- a/python/problems/while_and_if/buy_five/sl.py +++ b/python/problems/while_and_if/buy_five/sl.py @@ -2,7 +2,6 @@ import server mod = server.problems.load_language('python', 'sl') -id = 185 name = 'Blagajna "vse po pet"' slug = 'Blagajna "vse po pet"' -- cgit v1.2.1 From 6e281624b9a0ae29f1f1862f9d581b219ba3b95a Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 12 Oct 2015 11:46:08 +0200 Subject: Remove group attribute from problem common.py files --- python/problems/while_and_if/buy_five/common.py | 1 - 1 file changed, 1 deletion(-) (limited to 'python/problems/while_and_if/buy_five') diff --git a/python/problems/while_and_if/buy_five/common.py b/python/problems/while_and_if/buy_five/common.py index ba44f5b..a96b2b0 100644 --- a/python/problems/while_and_if/buy_five/common.py +++ b/python/problems/while_and_if/buy_five/common.py @@ -5,7 +5,6 @@ from python.util import has_token_sequence, string_almost_equal, \ from server.hints import Hint id = 185 -group = 'while_and_if' number = 1 visible = True -- cgit v1.2.1