Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
A student says that 7 // 2 is 3.5. What is the mistake? | StemPy Lab
Quizzes
/
A student says that 7 // 2 is 3.5. What is the mistake?
Python Programming
Medium
Middle Stage (6–8)
High School (9–10)
High School (11–12)
Undergraduate
General
Python Basics › Operators and Expressions
Created by
StemPy Lab
A student says that 7 // 2 is 3.5. What is the mistake?
// gives only the whole number of times, which is 3. The answer 3.5 is for 7 / 2
// rounds up, so it is 4
There is no mistake
// gives the remainder, so it is 1
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← What does print(2 + 3 * 4) show?
What does print(10 % 3) show? →
More on
Python Basics › Operators and Expressions
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
A number has three digits, for example 472.
Medium
A student wrote these three formulas. Each one has a mistake in the brackets.
Medium
Work out each sum on paper, using the order of Python.
Easy
5000 rupees is put in a bank at 6 percent a year, with the interest added every year.
Hard
All problems on this topic →