Simple Hello World Program In Python
Linux tutorials and code.
1 post
Page 1 of 1
Code: Select all
Now save it as helloworld.py (The .py extension identifies that this is a Python program)print "Hello, World!"
Now open up your terminal and navigate to the desktop by putting down the following terminal command.
Code: Select all
This will change the directory to our desktop.cd Desktop
Now lets test our program above by putting down the following terminal command. (NOTE: If we had any errors in our code they'll be automatically detected, but in our case we don't as seen in the final image below)
Code: Select all
python helloworld.py
You do not have the required permissions to view the files attached to this post.
1 post
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023