//read a file and print it on the screen import java.io.*; public class MyPrintStreamTest2{ public static void main(String[] args) { String filename = args[0]; // firsttime to see!!! if(filename!=null){ list(filename,System.out); } } public static vo…
1. Print them to screen man = [] other = [] try: data = open('sketch.txt') for each_line in data: try: (role, line_spoken) = each_line.split(':',1) line_spoken=line_spoken.strip() if role== 'Man': man.append(line_spoken) elif role == 'Other Man': oth…