in python please

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

in python please

Post by answerhappygod »

in python please
In Python Please 1
In Python Please 1 (40.67 KiB) Viewed 60 times
Complete the following function which constructs a set containing all elements from a two given lists as exemplified by the tests at the end. # Purpose: Construct a set from two lists Li and L2. # For example, if L1 - [1,2] and L2 - [2,3] then union2lists (L1,L2) returns (1,2,3) def union2lists(L1,L2): # Tests print(union2lists([1,2], [2,3])) # print out (1,2,3) print(union2lists([1,2,3], ["h"])) # print out (1,2,3,"A"}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply