fork(1) download
  1. # your code goes here
  2. all_extract = []
  3. print(newresult)
  4. for i in newresult:
  5. # regex_float = r'\s+(\d+\.\d+)\s+'
  6. regex_float_part = re.split(r'\s+(\d+\.\d+)\s+', i, 1)
  7. # print(regex_float_part)
  8. # regex_float_part_n = [item for sublist in regex_float_part for item in sublist]
  9. if regex_float_part:
  10. all_extract.append(regex_float_part)
  11. else:
  12. print("ONLY INTEGER")
  13. # regex_integer = r'\s+(\d+(?:\\d+)?)\s+'
  14. regex_integer_part = re.split(r'\s+(\d+(?:\.\d+)?)\s+', i, 1)
  15. # regex_integer_part_n = [item for sublist in regex_integer_part for item in sublist]
  16.  
  17.  
  18. all_extract.append(regex_integer_part)
  19.  
  20.  
  21. # parts = re.split(r'\s+(\d+(?:\.\d+)?)\s+', i, 1)
  22. #
  23. # all_extract.append(parts)
  24. return all_extract
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.7/py_compile.py", line 143, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "./prog.py", line 3
    print(newresult)
    ^
IndentationError: unexpected indent

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.7/py_compile.py", line 147, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: IndentationError: unexpected indent (prog.py, line 3)
stdout
Standard output is empty