Loop Table

0: whileListSquare.append(x*x) whileListCube.append(x*x*x) x += 1 loopNum -= 1 print "while loop nums squared" print(whileListSquare) print "while loop nums cubed" print(whileListCube) while(True): print("\nselect type of loop\n") loopType = int(raw_input("1 = for\n2 = while\n")) loopNum = int(raw_input("Enter amount of times you want to loop\n")) forListSquare = [] forListCube = [] whileListSquare = [] whileListCube = [] if loopType == 1: useForLoop(loopNum) elif loopType == 2: useWhileLoop(loopNum) else: print("Incorrect loop type number") ?>

Valid CSS!