After a lot of study I figured out a solution for assignment 0. Considering the amount of study to solve the assignment I'm not confident that I'm going in the right direction. I don't want to break the rules and post my solution. What should I do?
Posting your solution would break the rules ? I don't know what rules you are talking about. A lot of people are posting their code so it can be reviewed by others.
this is self-study so you don't have to worry about breaking any rules.
Yeah, don't worry about that. Besides, this is really challenging material. If you are having a really easy time with it, you are probably in too novice a class. I am having a hell of a time with it, but this is just for my edification. I can go at the pace I prefer and I don't have to move on until I am comfortable. So don't give up.
Here's my solution. I could have used "string1 and string2 instead of "answer1 and answer2" But that was the form I found that made sense. It makes sense to me and does what assignment 0 was but is it the way to go? question1 = "What is your last name?" print (question1) lastname = raw_input() question2 = "What is your first name?" print (question2) firstname = raw_input() # prints first name, space and last name print (firstname + " " + lastname)
Join our real-time social learning platform and learn together with your friends!