Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

dgo

ps0: http://codepad.org/Wtk23m6X notes? in the output field, why does it say syntax error? thanks

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. maitre_kaio
    Best Response
    You've already chosen the best response.
    Medals 2

    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.

    • 2 years ago
  2. Tomas.A
    Best Response
    You've already chosen the best response.
    Medals 0

    it looks like someone have run code and copied it from idle and then he just pasted it there :D

    • 2 years ago
  3. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    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?

    • 2 years ago
  4. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    @maitre, I see what it's pointing at but I have no idea how to not have that in there

    • 2 years ago
  5. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    @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

    • 2 years ago
  6. maitre_kaio
    Best Response
    You've already chosen the best response.
    Medals 2

    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 ?

    • 2 years ago
  7. Tomas.A
    Best Response
    You've already chosen the best response.
    Medals 0

    you copied not code but standard output window

    • 2 years ago
  8. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    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

    • 2 years ago
  9. Tomas.A
    Best Response
    You've already chosen the best response.
    Medals 0

    your code is only lastfirst = raw_input("What is your last name?")+" "+raw_input("What is your first name?") print lastfirst

    • 2 years ago
  10. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    lol ooooooh thank you that helps, i had no idea

    • 2 years ago
  11. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    is that good code for the problem?

    • 2 years ago
  12. Tomas.A
    Best Response
    You've already chosen the best response.
    Medals 0

    did you write it yourself?

    • 2 years ago
  13. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    yes, after reviewing almost every thread on here about it, def needed help, but no one else wrote the code like that

    • 2 years ago
  14. maitre_kaio
    Best Response
    You've already chosen the best response.
    Medals 2

    '>>>' 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 ?

    • 2 years ago
  15. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    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?

    • 2 years ago
  16. Tomas.A
    Best Response
    You've already chosen the best response.
    Medals 0

    you can write your code into file and run it python myfile.py

    • 2 years ago
  17. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    i don't understand your directions exactly. what buttons do i click? lol im sorry :/

    • 2 years ago
  18. Tomas.A
    Best Response
    You've already chosen the best response.
    Medals 0

    maitre_kaio will help you since i never used IDLE :D

    • 2 years ago
  19. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    im not aware of being able to "write my code into" anything other than the shell with the prompts

    • 2 years ago
  20. maitre_kaio
    Best Response
    You've already chosen the best response.
    Medals 2

    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.

    • 2 years ago
  21. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    ok, i guess the code's no good :( will revise it, i definitely just learned an important piece tho, thanks

    • 2 years ago
  22. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    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 :/

    • 2 years ago
  23. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    whenever i click f5 in new window after typing code, it switches back to the shell and it says >>>------------------restart---------------------- >>>

    • 2 years ago
  24. maitre_kaio
    Best Response
    You've already chosen the best response.
    Medals 2

    Try to exit and start idle again.Sometimes it has strange behaviors. Be sure to save first.

    • 2 years ago
  25. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    BOOM!!!!! ahhhhhh sigh of relief

    • 2 years ago
  26. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    thank you :) how can i ever repay you?

    • 2 years ago
  27. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    i guess you guys aren't looking for payment, good stuff, til next time, peace

    • 2 years ago
  28. Tomas.A
    Best Response
    You've already chosen the best response.
    Medals 0

    no we don't it's openstudy :P

    • 2 years ago
  29. maitre_kaio
    Best Response
    You've already chosen the best response.
    Medals 2

    Duh ? Really ? :)

    • 2 years ago
  30. dgo
    Best Response
    You've already chosen the best response.
    Medals 0

    haha i just meant im grateful!

    • 2 years ago
  31. maitre_kaio
    Best Response
    You've already chosen the best response.
    Medals 2

    No problem, keep asking.

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.