Thank you to everyone who helped me solve my issue here. I learned two new things! ( float(raw_input("prompt")) is a valid statement, and ^ is xor, while ** deals with exponentation. Thanks to all the helpful people out there! Sorry it took me so long to get back to you guys!