QuestionQ258Verified/Data Collections – Tuples, Dictionaries, Lists, and StringsCopy linkReport a problemAsk AstroTutorSave questionWhat output should be expected from this code? print(list('hello')) AhelloB[h, e, l, l, o]C['h', 'e', 'l', 'l', 'o']D['h' 'e' 'l' 'l' 'o']ENone of the above.Show AnswerAnswerExplanationConverting a string to a list creates one string element for each character. Python displays the resulting list with quoted string elements separated by commas.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion