Computer Science, asked by choudharybhavik1234, 8 months ago

Let list1 =['Red','Green','Blue','Cyan','Magenta','Yellow','Black'] What is the output of the following code ?print(list1[2:6:2])​

Answers

Answered by Oreki
6

\textsf{\large \textbf{Given Snippet}}

\texttt{list1 = [`Red', `Green', `Blue', `Cyan', `Magenta', `Yellow', `Black']}\\\texttt{print(list1[2\symbol{58}6\symbol{58}2])}

\textsf{\large \textbf{\symbol{79}utput}}

  \texttt{[`Blue', `Magenta']}

Similar questions