Names

import sys, random with open ("fnames.idx","r") as female: lines1 = female.readlines with open("mnames.idx","r") as male: lines2 = male.readlines with open ("lnames.idx","r") as last: lines3 = last.readlines random.shuffle(lines1) random.shuffle(lines2) random.shuffle(lines3) sys.stdout.write("Male\n\n") for i in range (0,10,1): sys.stdout.write(lines2[i].rstrip) sys.stdout.write(" ") sys.stdout.write(lines3[i]) sys.stdout.write("\nFemale\n\n") for i in range (11,21,1): sys.stdout.write(lines1[i].rstrip) sys.stdout.write(" ") sys.stdout.write(lines3[i])
 * 1) !/usr/bin/python3