Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

inicoud

  • 2 years ago

How do you type multiple lines of code into IDLE? My Python environment does not look like the one projected in the lectures. I am on a Mac platform running python build 2.7.3

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

    As long as you loaded Idle and not the command interpreter, you will be in the 'Shell', just go to 'File', 'New Window' and that will open the 'Editor' where you can write lines and save them to a file.

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

    If you're using the built in Python, Idle can be a real pain to find. Search for it in Spotlight.

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

    On most distributions, if you do not have an Idle icon, you can find an idle.bat file or similar under some combination of Lib\idelib under your python directory.

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

    You can type multiple lines of code using the OSX IDLE, just type it directly line by line and it knows that its multi-line. You exit by sending a blank line, also if you scroll up and press enter on multi-line code it will retype out for you automatically, allowing you to quickly edit it.

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

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

    file>New

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

    I'd highly recommend reading the IDLE guide at https://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html

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

    @inicloud if u r doing the 6.00x course (of EdX) then u should probable download and install the python version given on the site.might work better for u:). http://www.enthought.com/products/epd_free.php this is the link to it. follow the instruction given in problem set 1.

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

    Thanks for all the responses. I'm all set.

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

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

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.