Rewrite the following Python code using for loop instead of list comprehensions.
list_of_nums = [1, 2, 3, 4, 5] 
list_of_squares = [num**2 for num in list_of_nums]
list_of_nums = [1, 2, 3, 4, 5] 
list_of_squares = []

for num in list_of_nums: 
 list_of_squares.append(num**2)