summaryrefslogtreecommitdiff
path: root/python/problems/introduction
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-11 11:01:13 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-11 11:01:13 +0200
commit046463bcebe08c6cbe3504d676c0bf27f8695482 (patch)
tree02b42f57f9dbe049489f09148c55666388077e98 /python/problems/introduction
parente77850d687754750ab9e9f2aa8113eb9d7a73fd6 (diff)
Add language hints for Python and use Hint classes
Diffstat (limited to 'python/problems/introduction')
-rw-r--r--python/problems/introduction/fahrenheit_to_celsius/common.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/problems/introduction/fahrenheit_to_celsius/common.py b/python/problems/introduction/fahrenheit_to_celsius/common.py
index 1555cf7..5c8e0cd 100644
--- a/python/problems/introduction/fahrenheit_to_celsius/common.py
+++ b/python/problems/introduction/fahrenheit_to_celsius/common.py
@@ -1,5 +1,8 @@
# coding=utf-8
+from python.util import has_token_sequence
+from server.hints import Hint, HintSequence
+
id = 180
group = 'introduction'
number = 1
@@ -11,7 +14,10 @@ f = float(input("Temperatura [F]: "))
print("Temperatura je", c, "C")
'''
-from python.util import has_token_sequence
+hint_type = {
+ 'plan': Hint('plan'),
+ 'no_input_call': Hint('no_input_call'),
+}
def test(session, code):
# List of inputs: (expression to eval, stdin).