Really new to python, started today. I got a list of verbs and nouns from a txt list, I loaded them in and I was trying to print a noun and verb together from a specific position in the list. How do I make them print on the same line? they were printed on different lines.
Here is my code:
f = open('/User/Desktop/Python/nouns/2syllablenouns.txt', 'r')
nouns = []
for l in f:
nouns.append(l)
f = open('/User/Desktop/Python/verbs/2syllableverbs.txt', 'r')
verbs = []
for l in f:
verbs.append(l)
print(nouns[1] + verbs[1])