QuestionQ148Verified/Data Collections – Tuples, Dictionaries, Lists, and StringsCopy linkReport a problemAsk AstroTutorSave questionWhat output is expected from the following code? AefgBabcCdefDThe code is erroneous.EabcdeFNone of the above.Show AnswerAnswerExplanationPython’s max() compares strings lexicographically. Since 'efg' starts with e, which sorts after the initial letters of the other strings, it is the maximum value.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion