conversation between Tao Te Ching and Confucius

import randomi = 1
f = open('Tao Te Ching.txt')
g = open('confucius.txt')

alllines = []
allgenlines = []

wordsperline = []
wordspergenline = [] 
wordsgenperline = []

for line in f.readlines():
	alllines.append(line.strip())

evenlines = []
linenumber = 0

for line in alllines:

	if linenumber % 2 == 0:
		evenlines.append(line)
	linenumber += 1

oddwords = []
wordnumber = 0
oddwordnumber = 0
for line in evenlines:
	words = line.split()
	#wordsperline.append(len(words))
	#print len(words)
	for item in words:
		#print word
		if wordnumber % 2 != 0:
			oddwords.append(item)
			oddwordnumber += 1
		wordnumber += 1
	wordsperline.append(oddwordnumber)
	#print wordnumber
	wordnumber = 0
	oddwordnumber = 0
	linenumber += 1

# confucius begins

for line in g.readlines():
    allgenlines.append(line.strip())

oddlines = []
genlinenumber = 0

for line in allgenlines:

    if genlinenumber % 2 != 0:
        oddlines.append(line)
    genlinenumber += 1

evenwords = []
wordgennumber = 0
evenwordnumber = 0
for line in oddlines:
    words = line.split()
    for word in words:
        if wordgennumber % 2 == 0:
            evenwords.append(word)
        wordgennumber += 1
    wordspergenline.append(evenwordnumber)
    wordgennumber = 0
    evenwordnumber = 0
    genlinenumber += 1

# confucius over

for item, word in zip(oddwords, evenwords):
	print item, word

The out come looks like this:

Tao times

can what

spoken has

not is

eternal not

nameless places,

the this

of joy?

and remain

constantly junzi?

desire, times

observes what

essence has

two is

together not

differ places,

name this

of joy?

the remain

to junzi?

wonders and

the expression

knows rarely

as is

ugliness to

being parent

non-being respectful

each his

and superior.

reveal never

other there

and one

harmonize does

other rebellion.

the planted,

the dao

of born.

words and

create The

do said:

possess of

succeed words

do Master

dwell said:

success day

it examine

goes upon

the loyal?

will company

squabble friends,

the I

will passed

become to

their enough

will possess

be thousand

the chariots:

of expenditures

sage: treat

their as

their season.