QuestionQ141

VerifiedComputer Programming and Python Fundamentals

What is the expected output from the following code?

print(1 / 1)  
Explanation

In Python 3, / performs true division and produces a floating-point result. Dividing 1 by 1 therefore yields 1.0, and print displays 1.0.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!