Answer:
The result is 6.
Explanation:
number A is 3 and number B is 4.
4*3/2=6
Answer:
Receiving unexpected results from a program
Explanation:
Logic errors are due to the program not producing a desired result.
Answer:
<em>def without_end(strg):</em>
<em> if len(strg)>2:</em>
<em> return strg[1:-1]</em>
<em> else:</em>
<em> return strg</em>
Explanation:
Given above is a function in Python for solving this problem, we can try different output for this program by calling this function in a print statement
print(without_end ("hello")) output ell
print(without_end ("java")) output av
print(without_end ("coding")) output odin
Answer:
strr=input("please enter something: ")
while strr is not "":
print(strr)
strr=input("please enter something: ")
Explanation:
whenever the user will enter an empty string the loop will terminate
IPR offers ownership of the intellectual property. The owner of the property has the right to a monetary gain from those who wish to use it.