Dividing a float by zero
Predict the outputMedium-HardPython only
print(10 / 4)
print(10 // 4)
print(float("inf") > 10 ** 100)
print(1.0 / 0)
print("done")
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.