anonymous
  • anonymous
Ok, I feel dumb but I'm hung up on ps0 - I can do the raw_input and get it to show Enter your last name: etc, but I'm missing how to get it to actually print just the name (unless all you do is type print Smith for example). I'm sorry, what am I missing???
MIT 6.00 Intro Computer Science (OCW)
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
x=raw_input('something') print x This will print whatever you previously input. Get it?
anonymous
  • anonymous
Ok, so you assign variables to various parts of the string and put the variables together? Sorry, I haven't written code since DOS...
anonymous
  • anonymous
>>> x=raw_input('Enter your last name:') Enter your last name:Vander Ark >>> print x Vander Ark >>> y=raw_input('Enter your first name:') Enter your first name:Shanda >>> print y Shanda Like that?

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
And chat is not letting me enter anything all of a sudden, geez, technology!
anonymous
  • anonymous
Sure, but you might want to do something like this instead: x=raw_input('firstname') y=raw_input('lastname') print x,y
anonymous
  • anonymous
Ok, now it makes sense, thank you! Sorry, it's been way too long! :) I was getting there at least!
anonymous
  • anonymous
No problem. Don't forget to create a python file, instead of just writing code in the shell.
anonymous
  • anonymous
Ok, so here goes, hoping it's not too far off...
1 Attachment
anonymous
  • anonymous
Ok, let's try this again, think this one is better...
1 Attachment
anonymous
  • anonymous
Alright, take three, not giving up til I get it right!
1 Attachment
anonymous
  • anonymous
It's fine
anonymous
  • anonymous
Thank you so much! :)

Looking for something else?

Not the answer you are looking for? Search for more explanations.