A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

For assignment 0, I put ';' between commands but how do you do this for long programs without having invalid syntax? Am I missing something?

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

    Are you typing in a window called "Python Shell"?

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

    no I only have the 1 window (on Mac terminal). Do you know how I can get that?

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

    It sounds like you're not running IDLE -- use that to develop. More broadly, you can generally type multi-line commands without invalid syntax. Python knows when another line can come in, and it looks for indentation to see if it is indeed a continuation.

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

    And, ideally, you will mostly write your code in a text file that you then run using python. That way you can save the code and such.

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

    Ok thank you. What is the advantage of using IDLE then?

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

    IDLE includes a text editor that helps keep track of indentation and highlights keywords in different colors to make the code easier to read.

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

    great I'm looking for it now. Thanks!

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

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

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.