Machine Learning MCQS - QUESTION DETAILS

What is the output of the expression 7 // 2?
A. 3
B. 3.5
C. 4
D. 3

The '//' operator performs integer division in Python, discarding the fractional part.

Similar Questions

What makes Python a suitable choice for rapid prototyping and development?






Which of the following is a valid way to convert a string to an integer in Python?






Which of the following statements best describes Python's support for object-oriented programming (OOP)?






Which feature of Python allows developers to interact with other languages and systems?






Which aspect of Python's syntax contributes to its readability?






Which of the following statements is used to print output in Python?






What is the output of the expression 7 // 2?






Which of the following is NOT a valid variable name in Python?






Which of the following data structures is NOT a built-in type in Python?






Which of the following best describes Python's approach to code execution speed?