what does the statement "choice = raw_input(prompt)[0]" mean? I don't know why there is a '[0]' in the statement.
Thank you very much -- http://mail.python.org/mailman/listinfo/python-list
what does the statement "choice = raw_input(prompt)[0]" mean? I don't know why there is a '[0]' in the statement.
Thank you very much -- http://mail.python.org/mailman/listinfo/python-list