1 SUSPECT #1
print(bytes([255]).decode("utf-8")) Traceback (most recent call last):
File "lineup.py", line 1, in <module>
print(bytes([255]).decode("utf-8"))
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte 2 SUSPECT #2
import struct
print(struct.pack("i", "a")) Traceback (most recent call last):
File "lineup.py", line 2, in <module>
print(struct.pack("i", "a"))
~~~~~~~~~~~^^^^^^^^^^
struct.error: required argument is not an integer 3 SUSPECT #3
print("abc".encode("no-such-codec")) Traceback (most recent call last):
File "lineup.py", line 1, in <module>
print("abc".encode("no-such-codec"))
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
LookupError: unknown encoding: no-such-codec 4 SUSPECT #4
print("é".encode("ascii")) Traceback (most recent call last):
File "lineup.py", line 1, in <module>
print("é".encode("ascii"))
~~~~~~~~~~^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't encode character '\xe9' in position 0: ordinal not in range(128) 5 SUSPECT #5
print(int("ff", 16) + "1") Traceback (most recent call last):
File "lineup.py", line 1, in <module>
print(int("ff", 16) + "1")
~~~~~~~~~~~~~~^~~~~
TypeError: unsupported operand type(s) for +: 'int' and 'str'