Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andriiburka/c31b6355569734deb537560df2eedb79 to your computer and use it in GitHub Desktop.
Save andriiburka/c31b6355569734deb537560df2eedb79 to your computer and use it in GitHub Desktop.
# Whyyyy? 0/100
import re
all_user_inputs = ''
while True:
user_input = input()
if len(user_input) == 0:
break
else:
all_user_inputs += (user_input + " \n")
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