print square pattern in python using while loop