#!/usr/bin/env python3
#=====================================================================================
# Python Nested 'for' loops
#=====================================================================================
print("Content-Type: text/html \n")     #http header with newline char (required for web)

print('<pre>')                          #to produce better display on the web 

print('This is a nested for loop')                          

for  hour  in range (0, 24):                            #the outer loop 0-23

    print( "HOUR", hour, end="")                        #print, but do not go to next line
        
    for  minute  in range (0, 60):                      #the inner loop 0-59
        print( "\t", minute, end="")
        
    print()                                             #print, and go to next line

print("Done")