Inspectopedia Help

Unreachable code

Reports code fragments that cannot be normally reached.


if True: print('Yes') else: print('No')

As a fix, you might want to check and modify the algorithm to ensure it implements the expected logic.

Inspection Details

Available in:

DataSpell 2023.3, PyCharm 2023.3


Python Community Edition, 233.SNAPSHOT

Last modified: 13 July 2023