Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 7 Online
OpenStudy (anonymous):

Assignment 0 lastName = raw_input("What is your last name? ") firstName = raw_input("What is your first name? ") print firstName, lastName Any comments or input would be great. Thanks guys!

OpenStudy (anonymous):

well it works! i wish i had more comments but since its the first assignment there isn't too much to comment on. Maybe just some helpful hints, like for instance, raw_input converts everything you enter into a string so if you want the user to input a float or an integer than you can either use the input() function or int(raw_input()) or float(raw_input()). So maybe as an additional exercise try to get the users age and print it out, or perhaps calculate how many days old they are? (id treat leap years as regular years for simplicities sake) Good luck!

OpenStudy (anonymous):

http://www.doughellmann.com/PyMOTW/datetime/ http://docs.python.org/library/datetime.html#module-datetime it is possible to account for (or not!) leap days, leap seconds .....

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!