IH=s+s*(30/100)+s*(10/100) print(IH) cs
Answers
Finding output - Python
First of all, the cօde won't compile, because in the program 's' name is not defined.
If you run the above program directly then it will throw a NameError:
NameError: name 's' is not defined
So we would simply take a user input to accept the 's' value and store them as float value. Since we not familiar that what type of value will the user accept.
I'll be passing the same program by changing something it the way we just took the above suggestions.[tex][/tex]
s = float(input("Enter s value: "))
IH = s + s * (30/100) + s * (10/100)
print(IH)
Now this program is completely error free. Let's see the sample run that how will it look if we run the program.
Enter s value: <s value>
<the answer>
Suppose that the 's' value is 5, then the output would be like this:
Enter s value: 5
7.0