Python Program: Display Pattern Using For-Loop

Original Code

Converted Code