We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39f2d5 commit 77ccf1fCopy full SHA for 77ccf1f
my_exercises/question_4.py
@@ -20,4 +20,14 @@
20
# In case of input data being supplied to the question, it should be assumed to be a console input.
21
# tuple() method can convert list to tuple
22
#
23
-################################################################
+################################################################
24
+
25
+from typing import List, Tuple
26
27
+input_str: str = input(' a sequence of comma-separated numbers: ')
28
29
+a: List = input_str.split(',')
30
+b: Tuple = tuple(a)
31
32
+print(a)
33
+print(b)
0 commit comments