Question: please give the python code using if statement only. It compiler keep saying I have error but i ' m not sure where i '
please give the python code using if statement only. It compiler keep saying I have error but im not sure where im going wrong since it says assume that x was assigned a float. Please just solve this using if statement
I don't want any definitions or anything of the sort please. This is just begining programming to python and the chapter only deals with if statement in this section.
Question
Goal: Learn to use control flows to obtain conditional results.
Assignment: Assume the variable has been assigned a float. Write a piece of code that assigns the absolute value of to
value. You cannot use the builtin function abs
if x :
value x
reeaback No use ot bulltIn
Feedback Execution
More information
No output.
Feedback:
The expected value for 'value was but actual is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
