Which of the following has the same output as 27//8?
17//5
2**3
10.0-7
23%9
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
Vocaloid:
go through each operation and see which two are the same
some reminders:
- the double division // operator rounds down to the nearest whole number. for the two division problems, do the division and round down to the nearest whole number. both of the division expressions are int only so the results should both be ints.
- ** means exponent. 2 ** 3 means 2^3
- for the 10.0 - 7, remember that float and int operations result in floats. since the result of this will be a float, you can actually eliminate this one off the bat.
- for the % operator, calculate the remainder of division. (what is the remainder after 23 is divided by 9?)
lmk what you get
kekeman:
@vocaloid wrote:
go through each operation and see which two are the same
some reminders:
- the double division // operator rounds down to the nearest whole number. for the two division problems, do the division and round down to the nearest whole number. both of the division expressions are int only so the results should both be ints.
- ** means exponent. 2 ** 3 means 2^3
- for the 10.0 - 7, remember that float and int operations result in floats. since the result of this will be a float, you can actually eliminate this one off the bat.
- for the % operator, calculate the remainder of division. (what is the remainder after 23 is divided by 9?)
lmk what you get