fork download
  1. t = int(input())
  2. for _ in range(t):
  3. s = input()
  4. l = list()
  5. s.replace('.','0')
  6. for a in s:
  7. l.append(int(a))
  8. print(l)
  9.  
Runtime error #stdin #stdout #stderr 0.13s 23636KB
stdin
1
.2...
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 7, in <module>
ValueError: invalid literal for int() with base 10: '.'