What is the output of print(7 // 2)? python print(7 // 2)

  1. 3
  2. 1
  3. 4
  4. 3.5
Answer

A) 3

// is floor division: it gives the whole-number part. SLO CS-11-C-02

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise