How do you append a CGI file from a server into a txt file?

sorry messed up the code pastings.

[CODE]

Multiplication Table

def get_integers():
row = raw_input("Enter a number for the row:")
column = raw_input("Enter a number for the column:")
display_table()
def display_table():
for i in range(row + 1):
for j in range(column + 1):

        if (i == 0 and j == 0) :
            print "\t*",

        elif (i == 0) :
            print "\t", j,

            if (j == column):
                print "\n"

        elif (j == 0) :
            print "\t", i,

        else :
            print "\t", i * j,

get_integers()

raw_input("Press any key to quit.")
[/CODE]

this is what I have so far. I am stuck a little bit, I have been able to create the table, but it is not reading the specs of the rows and columns. any ideas?

#Multiplication Table

def get_integers():
    row = raw_input("Enter a number for the row:")
    column = raw_input("Enter a number for the column:")
    display_table()
def display_table():
    for i in range(row + 1):
        for j in range(column + 1):

            if (i == 0 and j == 0) :
                print "\t*",

            elif (i == 0) :
                print "\t", j,

                if (j == column):
                    print "\n"

            elif (j == 0) :
                print "\t", i,

            else :
                print "\t", i * j,
get_integers()

raw_input("Press any key to quit.")

I have been working with python for about a month now, but today I came across a problem I have yet to see; multiplication tables. I have absolutely no idea where to start or how to begin to format said table. The problem will be listed below, and if anyone can help getting me started I would be greatly thankful.

-Tyler

Write a program to display a multiplication table for integers in a given range. The program should accept two integers as input representing the minimum and maximum values the table should contain. The program should then print a table representing the multiplication table for integers in the given range. Note that you need to define two functions in this program. First function get_integers() gets inputs from the user; it takes no values, and returns two integers (the second one is larger than the first one). Second function display_table() displays the multiplication table, which takes two integers as its parameters. See a sample table below (the user types in 3 and 8):
[iCODE] | 3 4 5 6 7 8
3| 9 12 15 18 21 24
4| 12 16 20 24 28 32
5| 15 20 25 30 35 40
6| 18 24 30 36 42 48
7| 21 28 35 42 49 56

8| 24 32 40 48 56 64 [/iCODE]

Note for this program, the easiest way to print out the table with the numbers aligned as the one shown above ...

where exactly would you place the split tag in the code?

hi,
I am currently taking a pyton programming class and having some extreme difficulties. I am in quite the pickle with these 3 prompts. I do not know where to start for any of these prompts; if anyone has any code or solutions to any of these three promps I will be very grateful.

[B][U]Prompt 1:[/U][/B]
Write a program that creates a dictionary of son-father pairs, you can use celebrities, fictional characters, or even historical figures for fun. Your program should present the user a menu with three options. The following is an example.

0 - Quit
1 - Find a Father
2 - Find a Grandfather

Option 0 should end the program.

Option 1 should prompt the user for the name of a son. If the dictionary contains the son-father pair, the program should display the father. Otherwise, the program should tell the user it doesn't know who the father is.

Option 2 should prompt the user for the name of a grandson. If the dictionary contains enough information, the program should display the grandson's grandfather. Otherwise, the program should tell the user it doesn't know who the grandfather is.

The dictionary you create should include several geneartions so that a grandfather can be found given the name of a grandson.

[B][U]Prompt 2:[/U][/B]

Write a program to sort a list of numbers using the insertion sort algorithm (one of the many sorting algorithms). Given a list, insertion sort works by taking elements from the list one by one and ...

I am new to python, and I have been having some difficulty as of late. The current prompt that I am working on entails:

Write a program that gets the names of a player's top-five favorite games. Your program should store the names in a list. Then, the program should display teh five game names in the list.

So far this is what I have:

[CODE]list = [""]
raw_input("\nEnter your top-5 favorite games:")
print "Your favorites are:"
for item in list:
print item
raw_input("\nPress the enter key to exit")[/CODE]

The problem I am having is that I do not know how to correspond the users input into the list for it to display.

Any thoughts?

Thanks,

Tyler