 how to print numbers from 1 to 100 in Python. I'm gonna create variable num which is gonna be equal to 1. Then I'm gonna create a while loop. It's gonna loop until number 100. In each iteration I want to print that number and I want to increase that number by 1 in each iteration. Let's run this code. Numbers from 1 to 100 are printed using this code.