in python please
Complete the following function which converts a list to a set as exemplified by the tests at the end. # Purpose: Convert a given list L to a set. # For example, if L = (1,2,1), then ListaSet (L) returns (1,2). def List2Set (L): # Tests print (List2Set([1,2])) # print out (1,2) print (List2Set([1,2,1])) # print out (1,2)
in python please
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
in python please
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!