QuestionQ141Verified/Computer Programming and Python FundamentalsCopy linkReport a problemAsk AstroTutorSave questionWhat is the expected output from the following code? print(1 / 1) A1B1.0CThis can not be predicted.DThis can not be evaluated.Show AnswerAnswerExplanationIn 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 morePython 3 documentation — Expressions: binary arithmetic operationsShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion