When there is an error in the code, the function that should be used is A. float(); weight requires decimals
<h3>When is a code?</h3>
Computer code, or a set of instructions or a system of rules defined in a specific programming language, is a term used in computer programming (i.e., the source code). It is also the name given to the source code after a compiler has prepared it for computer execution.
A float is a number with a decimal place since it is a floating-point number. When greater precision is required, floats are employed. The provided value is transformed into a floating point number by the float() function. In this case, the code is used to calculate the weight of an item and the float function will be vital.
Learn more about programs and code on:
brainly.com/question/22654163
#SPJ1
Answer:
# you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(H):
# write your code in Python 3.6
# return area of atmost 2 banners
# 1 banner
# maximum height * number of buildings
single_banner = max(H) * len(H)
smallest_area = single_banner
# 2 banner
for i in range(1, len(H)):
double_banner = (max(H[0:i]) * len(H[0:i])) + (max(H[i:]) * len(H[i:]))
if double_banner < smallest_area:
smallest_area = double_banner
return smallest_area
Answer:
there is an answer button below the questions
Explanation:
Answer is (B) Value-added networks.
A van is a private network provider hired among online companies that facilitate EDI (Electronic Data Interchange) or other network services such as
message encryption, securing mail, and management reporting. A Value Added
Network provides an easy way for ecommerce businesses to share data and communicate securely.