97.0k views
9 votes
What is the output for the following line of code?

>>>int(2.8)
O 3
O '2.8
02
2.8

2 Answers

9 votes

Answer:

2

Step-by-step explanation:

I answered it on Edge and it's correct.

User Nogusta
by
3.4k points
14 votes

Answer:

2

Step-by-step explanation:

The answer is 2 because the "int" drops any number after the decimal point, leaving 2

User Petersaber
by
3.8k points