QuestionQ56Verified/Python BasicsCopy linkReport a problemAsk AstroTutorSave questionWhat string is produced by the following command for the string variable gpyc? AnohtyPBpowerfulCengaugnal lufrewopDlufrewopEpowerful PythonShow AnswerAnswerExplanationThe slice gpyc[12:20] produces powerful. A reverse slice with a start index beyond the substring length is clipped to its final character, so [11::-1] reverses the complete substring to produce lufrewop.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion