⊗pyPmCdIE 126 of 208 menu

The if-else construct in Python

Python has a special construct if-else that allows you to execute code depending on whether it meets a certain condition. The syntax of if-else looks like this:

if comparison operation: ''' the code ''' else: ''' the code '''
ptmsdehunl