#!/usr/bin/python3
import sys
if len(sys.argv) != 2:
print("please input a filename")
raise SystemExit(1)
f = open(sys.argv[1])
lines = f.readlines() #read all line.
print(lines)
#line = f.readline()
#print(line, end = "") #read a line
fvalues = [float(line) for line in lines]
print(fvalues)
print("the mininum value is ", min(fvalues));
print("the maxinum value is ", max(fvalues));
#['123\n', '121\n', '2222\n', '3325\n']
# [123.0, 121.0, 2222.0, 3325.0]
# the mininum value is 121.0
# the maxinum value is 3325.0
fvalues = [float(line) for line in open(sys.argv[1])];
print(fvalues)
names = ["a", "b", "c"]
print(names)
names.append("hello")
print(names)
names.insert(2, "world")
print(names)
names[1] = "good"
print(names)
#replace the first two items in the list with the three item in the right items.
names[0:2] = ["aa", "bb", "cc"]
print(names)
x = ["a", ["aa", "bb"]]
print(x)
print(x[1][1])
null_list = []
print(null_list)
null_list2 = list()
print(null_list2)