QuestionQ111Verified/StringsCopy linkReport a problemAsk AstroTutorSave questionWhat behavior should be expected from this code? Ait outputs 3Bit outputs 'None'Cit outputs 0Dit raises an exceptionShow AnswerAnswerExplanationFloor division of 1 by 3 evaluates to 0, and str(0) is '0'. The loop leaves dummy as '0', and dummy[-1] retrieves its last character, which is printed as 0.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion