Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started