Changes

Jump to: navigation, search

OPS435 Python Lab 1

15 bytes added, 12:35, 20 July 2017
Integer Variables
vim ~/ops435/lab1/lab1a.py
</source>
:#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 any remaining all python scripts you create for this course.<source>
#!/usr/bin/env python3
print(name)
</source>
:#Think about why this does not worksomething different:<source>
print('name')
</source>
:#Enter the following command:<source>
sum
</source><br>Does this value look right? Are you sure? If we wanted to print this out to the screen we could use the following python code.<br><br>
:#Enter the following function:<source>
print(sum)

Navigation menu