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

liaoee Group Title

I am starting Pset 0. How do I write a program in IDLE. As in, I want to be able to write more than one line of code before IDLE runs my code. Thanks!

  • one year ago
  • one year ago

  • This Question is Closed
  1. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    You can either use an editor to write your code and IDLE to run it, or grab a program called PyScripter, http://code.google.com/p/pyscripter/, lovely little ide for python that is free.

    • one year ago
  2. bwCA Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    from the IDLE shell window you can open an editor window with menu item File | New Window after you have written code in the editor, F5 will run it with the results displayed in the shell window. be sure to save files with a .py extension to preserve the syntax highlighting.

    • one year ago
  3. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    thanks guys! so it's a blank page. Do I need to add anything before getting started?

    • one year ago
  4. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Just the comments for the assignment are the only thing I can think of until you start importing things.

    • one year ago
  5. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    i tried running this: x = raw_input('Please enter your birthdate (mm/dd/yyyy): ') y = raw_input('Please enter your last name: ') print x + y but it doesn't work.. am i missing something?

    • one year ago
  6. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    also are we encouraged to asked questions, or look up previous questions? if the latter, how do i do so?

    • one year ago
  7. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    For looking up questions you can use the codeacademy forum or google.

    • one year ago
  8. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    When you say that your code didn't work, what "did" it do?

    • one year ago
  9. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    it didn't prompt me for anything, and it gives back whatever i type

    • one year ago
  10. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    You are typing in the editor and using F5 to run it?

    • one year ago
  11. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    ah... that's why

    • one year ago
  12. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    nice it works!

    • one year ago
  13. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Thank you so much. I'll keep working on it.

    • one year ago
  14. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    You're welcome. Check out PyScripter if you have some free time. I personally prefer that over the IDLE editor.

    • one year ago
  15. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    could you explain that to me a bit? like the difference between terminal and editor etc?

    • one year ago
  16. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    so i downloaded python, and then idle. did i need idle?

    • one year ago
  17. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    IDLE comes with Python, once you download and install the package you will have all you need to write in Python.

    • one year ago
  18. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    The PyScripter is an IDE for Python, basically the same as the IDLE editor, just with a better user interface.

    • one year ago
  19. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    The difference between an editor and terminal, is that in the terminal your commands are processed as soon as you hit the enter key.

    • one year ago
  20. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    so what's the difference between command line and GUI?

    • one year ago
  21. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    i just noticed that one is black and one is white

    • one year ago
  22. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Command line typically refers to a terminal, like if you were to open the "command prompt" in windows. GUI stands for Graphical User Interface, and typically refers to a "windowed" environment.

    • one year ago
  23. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    but idle is terminal, right? and it's GUI?

    • one year ago
  24. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Technically IDLE is a GUI for the terminal.

    • one year ago
  25. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    so GUI is basically just a better looking terminal, and the editor is where we actually write a program

    • one year ago
  26. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    and then what's IDE?

    • one year ago
  27. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Well a GUI is a graphical representation for many interfaces, most likely you are using a GUI web browser to view this page. :)

    • one year ago
  28. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    An IDE is and Integrated Development Environment. It brings together many of the tasks associated with programming into a nice user interface. You are presented with buttons to build your program, vs having to run a command on the command line.

    • one year ago
  29. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    got it! thnx!

    • one year ago
  30. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    You're welcome.

    • one year ago
  31. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    hey when does print need parenthesis after it? i saw an example where if the variable is called x, no parentheses are used, and another where the variable is "changing," and parenthese were used...?

    • one year ago
  32. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    The parenthesis aren't necessary. They most likely give away that the person writing the program was a 'C' programmer.

    • one year ago
  33. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    i see..

    • one year ago
  34. liaoee Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    so for pset 0 that was it right? three lines? no loops?

    • one year ago
  35. bwCA Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    version 3+ of Python requires parens for the print function

    • one year ago
  36. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    @bwCA beat me to it, I started playing with 3.x last night and discovered that the parenthesis were in fact required. There are some other changes as well that can create a learning speed-bump, so I'd suggest you stick with 2.7.x until you are more familiar with the language.

    • one year ago
  37. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    And yes, that was it for your ps0, the bulk of the assignment was getting Python installed and familiarizing you with entering code.

    • one year 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.