rowCount = int(raw_input("How many rows would you like in the powers table? ")) colCount = int(raw_input("How many columns would you like in the powers table? ")) print #blank line for row in range(rowCount): line = "" for col in range(colCount): line += str((row+1)**(col+1)) + "\t" print line