You’ve already created the file? That’s good. Windows powershell might be a decent option or gitbash if you prefer bash (but they aren’t the only options). It might be worth considering a tool other than the basic command prompt cmd.exe for this. I tried following the answer but I really cant figure it out… Our console should print the following message", does the “console” means in the Python program? Do we always need to do the scripts in Windows Command prompt (for WIndows) to run Python?.How do we run Command Prompt in the folder where the file was saved? Right clicking in the folder doesn’t allow for option for Command Prompt…I tried choosing “Git Bash Here” but it doesn’t seem to be the way of doing it “Finally, run the script by executing the following command from the Terminal/Command Prompt in the folder where the file was saved.” Same as above, how do I create the mycode.py from Windows Command Prompt? I have already at the step where I saved the script in text editor (Notepad) and saved it in the same file as the mycode.py folder.Now how do I create the mycode.py from the windows command prompt? That’s it! We just ran Python code on our own personal environment. I’m running Python code on my own environment!.Ħ. Our console should print the following message Finally, run the script by executing the following command from the Terminal/Command Prompt in the folder where the file was saved.ĥ. Print(“I’m running Python code on my own environment!”)Ĥ. Copy and paste the following code and save the file. Create a new file called mycode.py and open it with your favorite text editor.ģ. Open a Terminal (if on Mac) or Command Prompt (if on Windows) and browse to a directory of your choice.Ģ. I just installed Python in my computer, and trying to do what’s suggested in the Codecademy page, as follows:ġ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |