Question #1Part 1
The ABC company has hired you as an intern on the coding team that creates e-commerce applications. You must write a script that asks the user for a value. The value must be used as a whole number in a calculation, even if the user enters a decimal value. You need to write the code to meet the requirements. Which code segment should you use?
AtotalItems = input("How many items would you like?")
BtotalItems = float(input("How many items would you like?"))
CtotalItems = str(input("How many items would you like?"))
DtotalItems = int(input("How many items would you like?"))
✓ Verified Answer: B