Skip to content

Commit 77ccf1f

Browse files
committed
BRUSHED
1 parent c39f2d5 commit 77ccf1f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

my_exercises/question_4.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,14 @@
2020
# In case of input data being supplied to the question, it should be assumed to be a console input.
2121
# tuple() method can convert list to tuple
2222
#
23-
################################################################
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

Comments
 (0)