Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

Python

Compiler

CPython HEAD 3.8.0a1+

Options

Author

anonymous

over 6 years ago

$ python3 prog.py
arr is 3.14159 2.71828 !
arr is 3.142 2.718 !
Traceback (most recent call last):
  File "prog.py", line 21, in <module>
    print('arr is {:.2f} !'.format(arr))
TypeError: unsupported format string passed to MyArray.__format__
Exit Code:
1