Discussion Assignment - Functions and Lists

Take your solution to discussion on Friday.

1. Write a Python program that reads every line in the file disc.txt, one at a time. For each line, your program strips off the newline character at the end of the line (the strip() method is actually  not a good choice for this), converts all letters in the line to uppercase, and writes this revised string to the file discOutput.txt. (Add a newline character to this string). Create your own test file.

2. Write a function makeList(s) that takes a string s, and returns a list containing the letters and digits stored in s. For example:
makeList("hello, hey!") --> [h, e, l, l, o, h, e, y]
makeList("\nTalk $ \t1-800\n") --> [T, a, l, k, 1, 8, 0, 0]