Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 21 Online
OpenStudy (anonymous):

when i press F5 to run a program, i loose the coloring in my code??

OpenStudy (anonymous):

Hi! when you run a script, python wll ask you to save the code first. (which there is no way around: you need to save it before the script is run) SO when you save it, be sure to save it as .py, ie code.py, where you actually need to write the .py in the file name. then python will recognize the file as code and do all the the colors and highlighting and what not.

OpenStudy (anonymous):

thanks

OpenStudy (anonymous):

when i save my script as py it usually saves as a file why

OpenStudy (anonymous):

yea the default save type is not .py.... hence one has to manually type in ".py" after the file name.... it can create confusion for beginners

OpenStudy (anonymous):

thanks alot ka

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!