Question: 4. 2. Fix challenge 2 (python) Note : Your arguments are strings unless they are converted into some other type. In this challenge, we are

4. 2. Fix challenge 2 (python)

Note: Your arguments are strings unless they are converted into some other type. In this challenge, we are using decimals (float) rather than integers (int) for our type. So, you will need to tell Python to treat the variables as floating point decimal numbers by putting float(variable) in at the correct times.

Fix the broken code:

# Input from the command line import sys A = sys.argv[1] B = sys.argv[2] C = sys.argv[3]

# Your code goes here num = A * (B + C/3

# Outputs print ( num

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!