cd
cd it116
cd ex
pwd
mkdir ex22
ls
cd ex22
nano ex22.py
chmod 755 ex22.py
./ex22.py
list_1 : [1, 2, 3, 4, 5] list_2 : [6, 7, 8, 9, 10] list_1 + list_2 : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] list_2 + list_1 : [6, 7, 8, 9, 10, 1, 2, 3, 4, 5] list_1 * 2: [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] list_2 * 3: [6, 7, 8, 9, 10, 6, 7, 8, 9, 10, 6, 7, 8, 9, 10] lists_add(list_1, list_2) : 55 lists_add(list_1, [3,2,1]) : 21 lists_subtract(list_2, list_1) : 25 lists_subtract(list_2, [5,4,3]) : 9 list_average(list_1) 3.0 list_average(list_2) 8.0
~ghoffman/it116_test/ex22.shThe script will prompt you for your Unix username.