Skip to content

Commit 3cc055a

Browse files
authored
Fixed bug about entering input with spaces
When you type "2081 2182 " an error message appears: too many values to unpack. Now this bug is fixed.
1 parent 8493661 commit 3cc055a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

separateBlocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
def separate(block_):
2+
block_ = block_.strip()
23
block1, block2 = block_.split(" ")
34
return block1, block2

0 commit comments

Comments
 (0)