All challenges
Multiple ChoiceIntermediate 30s

math.floor vs int

Choose the best answer for: floor vs int conversion
Options
  1. 1math.floor(-3.5) is -4, int(-3.5) is -3
  2. 2They give the same result for any numeric value
  3. 3math.floor works on strings and yields values
  4. 4int is deprecated in favor of math.floor

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle