Changes

Jump to: navigation, search

OPS435 Python Lab 2

36 bytes added, 18:07, 25 May 2017
PART 2 - Arguments
''' Practice Using Arguments '''
:Now it's time to create a new script, but unlike prompting the user for data, the data (as arguments from running your Python script) will be used instead. Refer to variable name and prompt text information when creating your Python script. Refer to Sample Runs displayed below for exact prompt and output requirements.
:'''Perform the following Instructions:'''
to prompt the user to enter data and display that data on their terminal. Refer to variable name and prompt text information when creating your Python script. Refer to Sample Runs displayed below for exact prompt and output requirements.:#Make a copy of '''lab2b.py''' and call it '''lab2c.py'''. Now modify :#Modify '''lab2c.py''' so that it uses '''sys.argv[1]''' and '''sys.argv[2]''' instead of the '''input() ''' functionsthat was used in your previous ''lab2b. py'' script.  Example output is shown below:
::*The script should have a Shebang line
13,420
edits

Navigation menu