This commit is contained in:
M. A. Reza 2025-11-26 15:57:48 +03:30
parent dc2750d185
commit 2fab4515bd
2 changed files with 14 additions and 0 deletions

11
utils/input_utils.py Normal file
View File

@ -0,0 +1,11 @@
def get_multiple_line_input(prompt: str = "Enter/Paste your content. Ctrl-D or Ctrl-Z ( windows ) to save it."):
print(prompt)
contents = []
while True:
try:
line = input()
except EOFError:
break
contents.append(line)
user_input = '\n'.join(contents)
return user_input

3
utils/number_utils.py Normal file
View File

@ -0,0 +1,3 @@
def thousands_seperated_to_int(thousands_seperated: str) -> int:
return int(thousands_seperated.replace(',', ''))