fork download
  1.  
  2. # Decode
  3.  
  4. from decimal import Decimal
  5.  
  6. file = open('test.txt', 'r')
  7.  
  8. ar = []
  9. n = 30
  10.  
  11. for i in range(n):
  12. ar.append([])
  13. for x in range(n):
  14. ar[i].append([])
  15. for z in range(n):
  16. line = file.readline()
  17. if not line:
  18. break
  19. line = str(line).replace(' ', '').replace('\n', '')
  20. line = float(Decimal(line))
  21. ar[i][x].append(line)
  22.  
  23. print(ar)
  24.  
Runtime error #stdin #stdout #stderr 0.04s 9776KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 6, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'test.txt'