fork(1) download
  1. mol = 0
  2. while 1:
  3. try:
  4. mol = mol + 1
  5. fp, fh = map(int,input().split())
  6. a = int(fp*5/2 + fh*3)
  7. l = 2 + a - fp - fh
  8. print('Molecula #%d.:.' % mol)
  9. print('Possui %d atomos e %d ligacoes' % a, l)
  10. print()
  11. except:
  12. break
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
12 20
50 120
10025 548
468 17458
compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 125, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 735, in source_to_code
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "./prog.py", line 11
    except:
          ^
TabError: inconsistent use of tabs and spaces in indentation

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/py_compile.py", line 129, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: TabError: inconsistent use of tabs and spaces in indentation (prog.py, line 11)
stdout
Standard output is empty