Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

PYTHON ACTIVITY.

image text in transcribed
#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions