Created
March 19, 2020 12:54
-
-
Save andriiburka/9d2d0edddb9a6c351e7a34cf122f4115 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
all_user_inputs = '' | |
while True: | |
user_input = input() | |
if len(user_input) == 0: | |
break | |
else: | |
all_user_inputs += (user_input + " ") | |
nums = re.findall(r"\d+", all_user_inputs) | |
print(*nums) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment