Question: PYTHON ACTIVITY. #1 Convert the list [ 'rap' , 'house' , 'electronic music' , 'rap' ] to aset: In [ ]: if Write your code
PYTHON ACTIVITY.

#1 Convert the list [ 'rap' , 'house' , 'electronic music' , 'rap' ] to aset: In [ ]: if Write your code below and press Shift+Enter to execute #ZConsiderthelist A = [1, 2, 2, 1] andset B = set([1, 2, 2, 1]) ,does summ) = sum(B) In [ ]: if Write your code below and press Shift+Enter to execute #3 Create a new set album_set3 that is the union of album_set1 and album_set2 : In [ ]: if Write your code below and press Shift+Enter to execute set(["Thriller", 'AC/DC', 'Back in Black']) set([ "AC/DC", "Back in Black", "The Dark Side of the Moon"]) album_set1 album_set2 #4 Find out if album_set1 is a subset of album_set3 : In [ ]: if Write your code below and press Shift+Enter to execute
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
