Changes

Jump to: navigation, search

OPS435 Online Lab1

4 bytes added, 22:42, 12 May 2020
Creating the "Hello World" Python Script
<ol><li value="5" style="margin-left:25px;">Write the following code into our Python file. Note the she-bang line at the top of the file to run this script in the python3 environment. You will need to add this she-bang line for all python scripts you create for this course.<source lang="python">
#!/usr/bin/env python3
'''Description: This program will output "hello world" to the screen.'''
# Any line that starts with a "#" is also known as a comment,
# it is used to tell the system which interpreter to
# use(python2, python3, bash, etc).
 
# Description: This program will output "hello world" to the screen
print('Hello world')
1,760
edits

Navigation menu