Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

atrofimov85

  • 2 years ago

I just downlaoded Python 2.5.4. When I open the new window, to write in the script mode and then run it in the shell, I do not have any keywords such as "print" or "def" color coded. I did not have such issue when I initially downloaded Python 3.x Please help. Thanks.

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

    you can check the highlighting from Options>configure idle>highlighting and see if the option has highlighting for print and def PS. maybe some who has used 2.5.4 may help you better

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

    Thanks. I tried that, but it highlights the whole thing. Not just keyword. Which version are you using?

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

    i am using 2.7x

  4. e.mccormick
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    Save the file as a .py file?

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

    Thank. I actually just figured it out. For some reason my computer was not saving scripts in .py format (which it did before). I just manually changed it to .py. It works! Thank you very much.

  6. 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