filmov
tv
Python quiz Magic Michael Match: what is the output of this python code?

Показать описание
What is the result of running this python code? which one of the multiple choices is the correct answer? A string " Magic Michael Match " is first defined and then using set and list indexing and slicing a set named win is defined. Then an if else statement checks whether the character M is inside the new set or not and depending on the outcome the code prints either the length of the set win or the length of the original string game.