It worked! Thanks a lot! I recall trying raw_input before but it threw an error that time. It worked now though
FAQ: Functions - Review: Functions
Python has two major versions: python2 and python3. Python3 is the newer and should be used, but is not backward compatible with python2. raw_input vs input is a good example of this.
python2 is also near its End of Life (EOL).