anonymous
  • anonymous
ps0: http://codepad.org/Wtk23m6X notes? in the output field, why does it say syntax error? thanks
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
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.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
maitre_kaio
  • maitre_kaio
Look at the place nicely pointed by the interpreter. What the hell '>>>' is doing here ? I think you made a bad copy/paste from idle.
anonymous
  • anonymous
it looks like someone have run code and copied it from idle and then he just pasted it there :D
anonymous
  • anonymous
this is my first time using codepad or programming or using python or anything, i highlighted the screen in IDLE after I had what I though was a good program, clicked edit, clicked copy, went to codepad, clicked paste. how else do you paste into codepad?

Looking for something else?

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

More answers

anonymous
  • anonymous
@maitre, I see what it's pointing at but I have no idea how to not have that in there
anonymous
  • anonymous
@tomas, care to tell me how to do it correctly instead of just laughing at me? lol laughing at me is cool but maybe followed or preceded by some constructive feedback would be nice, thanks
maitre_kaio
  • maitre_kaio
We are not laughing at all; because we want to help you and take time to read the questions. That said, do you understand that '>>>' is not part of your program ? If this is the case, you probably know how to erase characters in an editor ?
anonymous
  • anonymous
you copied not code but standard output window
anonymous
  • anonymous
I had no idea that '>>>' was not part of the program. is codepad the editor? so do i c/p from idle into codepad and then manually delete the '>>>'? ill try doing that now. im sorry I just thought tomas was having a laugh at me. you are both very helpful so I thank both of you, I just feel like a noob all the time right now, maybe a little insecure lol
anonymous
  • anonymous
your code is only lastfirst = raw_input("What is your last name?")+" "+raw_input("What is your first name?") print lastfirst
anonymous
  • anonymous
lol ooooooh thank you that helps, i had no idea
anonymous
  • anonymous
is that good code for the problem?
anonymous
  • anonymous
did you write it yourself?
anonymous
  • anonymous
yes, after reviewing almost every thread on here about it, def needed help, but no one else wrote the code like that
maitre_kaio
  • maitre_kaio
'>>>' is just the way that the IDLE shell is saying 'hey, please type something here'. It is called a prompt. And I don't know if I'm right, but now I believe that you're typing all your code in the shell. That's not very efficient because the interpreter evaluates each line you entered. Is it the case ?
anonymous
  • anonymous
yes, that is the case, and it seemed very inefficient because one small error and I had to start all over again. what is a better way?
anonymous
  • anonymous
you can write your code into file and run it python myfile.py
anonymous
  • anonymous
i don't understand your directions exactly. what buttons do i click? lol im sorry :/
anonymous
  • anonymous
maitre_kaio will help you since i never used IDLE :D
anonymous
  • anonymous
im not aware of being able to "write my code into" anything other than the shell with the prompts
maitre_kaio
  • maitre_kaio
In the IDLE shell window, go to menu 'File->New window'. This opens a new blank window. Type your program in the window. You can save it, using the menus. To run it, press F5.
anonymous
  • anonymous
ok, i guess the code's no good :( will revise it, i definitely just learned an important piece tho, thanks
anonymous
  • anonymous
wait, how am I running the program in the new window? don't i need to input first and last names when prompted in order to see if works or not? im so confused :/
anonymous
  • anonymous
whenever i click f5 in new window after typing code, it switches back to the shell and it says >>>------------------restart---------------------- >>>
maitre_kaio
  • maitre_kaio
Try to exit and start idle again.Sometimes it has strange behaviors. Be sure to save first.
anonymous
  • anonymous
BOOM!!!!! ahhhhhh sigh of relief
anonymous
  • anonymous
thank you :) how can i ever repay you?
anonymous
  • anonymous
i guess you guys aren't looking for payment, good stuff, til next time, peace
anonymous
  • anonymous
no we don't it's openstudy :P
maitre_kaio
  • maitre_kaio
Duh ? Really ? :)
anonymous
  • anonymous
haha i just meant im grateful!
maitre_kaio
  • maitre_kaio
No problem, keep asking.

Looking for something else?

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