"Hello World (Local)" Exercise
Last updated
Was this helpful?
Last updated
Was this helpful?
In this exercise, we'll practice using the local development environment to create, edit, and execute a simple Python program.
This exercise assumes you have already done the .
Use your text editor to create and save a new file on the Desktop called "my_script.py".
Use your text editor to write some Python code (like the example code below) in the file.
Remember to save the file (anytime before running)!
From your command-line application, ensure your Anaconda "base" environment is active.
From your command-line application, execute the file (python ~/Desktop/my_script.py
) to see its output.
Example Python code:
Once you see the printed messages in your command-line application, you have succeeded. Edit the file (by changing the message or the numbers), save it again, and run it again. Repeat this process more time for good measure.