n = int(raw_input())
arr = map(int, raw_input().split())
print set(arr).sort()[-2]
arr = map(int, raw_input().split())
print set(arr).sort()[-2]
//To read the entire contents
with open("filename.txt") as f:
contents = f.read()
//To read line by line
#!/usr/bin/python
filename = "myfile.txt"
with open( filename ) as f:
# file read can happen here
# print "file exists"
print f.readlines()
with open( filename, "w") as f:
# print "file write happening here"
f.write("write something here ")
How to make each term of an array repeat, with the same terms grouped together? i/p: [A,B,C] o/p: [A,A,A,B,B,B,C,C,C] Solution: >...