Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

185 bytes added, 13:38, 25 May 2017
PART 1 - User Input
''' Practice Storing User Input '''
:#Now it's time to create a new scriptto prompt the user to enter data and display that data on their terminal.  :'''Perform the following Instructions:''' :# Make a copy of '''lab2a.py''' and call it '''lab2b.py'''. Now modify :# Modify '''lab2b.py''' so that it asks prompts the user for both the value of user's '''name ''' and the value of '''age'''. Use the '''input() ''' function and store the values in the correct variablesvariable names (displayed below). Example output is shown You can refer to Sample Runs displayed further below:for reference.
::*The script should have a Shebang line
13,420
edits