What is the output of print(7 // 2)? python print(7 // 2)
- 3
- 1
- 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
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