Write the python code to create two sets


Problem

A. Write the python code to create two sets. The sets should be 1,2,3,4 & 3,4,5,6

Print the intersection of the two sets

B. Write snippet of Python code to detect a 0-1 or 1-0 transition within

myList=[0,0,0,0,0,1,1,1,0,0,0].

The code should print the index of the 1st item in the transition.

Example 00110 would print '01 transition at index 1' and '10 transition at index 3'

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Write the python code to create two sets
Reference No:- TGS03249164

Expected delivery within 24 Hours