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???
x=raw_input('something') print x This will print whatever you previously input. Get it?
Ok, so you assign variables to various parts of the string and put the variables together? Sorry, I haven't written code since DOS...
>>> 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?
And chat is not letting me enter anything all of a sudden, geez, technology!
Sure, but you might want to do something like this instead: x=raw_input('firstname') y=raw_input('lastname') print x,y
Ok, now it makes sense, thank you! Sorry, it's been way too long! :) I was getting there at least!
No problem. Don't forget to create a python file, instead of just writing code in the shell.
Ok, so here goes, hoping it's not too far off...
Ok, let's try this again, think this one is better...
Alright, take three, not giving up til I get it right!
It's fine
Thank you so much! :)
Join our real-time social learning platform and learn together with your friends!