Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

174 bytes removed, 09:25, 31 May 2017
PART 1 - Using Functions
:::*Add a '''couple of empty lines''', following by a comment stating: '''#Main Program'''
:::*Add another '''couple of empty lines''', followed by the statements displayed below:<source>
# This IF Statement may seem cryptic and unclear. Any code written under this IF statement will be run when you run your script. #if __name__ == '__main__': text = return_text_value() print(text) number = return_number_value() print(str(number))
</source>
:#Exit the ipython3 shell, download the checking script and check your work. Enter the following commands from the bash shell.<source>
13,420
edits