MCQs > IT & Programming > Python > Output of the following Python code? print (5/2) print (-5/2) print (5.0/2) print (-5.0/2)

Python MCQs

What will be the correct output of the following Python code?

print (5/2)

print (-5/2)

print (5.0/2)

print (-5.0/2)


Answer

Correct Answer:

2.5

-2.5

2.5 

-2.5 


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it