pattern

PythonF

Alternate Row Pattern

The program must accept an integer N as the input. The program must print the desired pattern as shown in the Example Input/Output section.…