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?

🎲 Try a Random Question  |  Total Questions in Quiz: 9  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
98-381: Introduction to Programming Using Python Exam — practice the complete quiz, review flashcards, or try a random question.


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?