first = {1, 2, 3, 4, 5, 6} second = {4, 5, 6, 7, 8, 9} third={2,4,6,8,0} fourth=([4,6,8,5]) print(first | second | third ) prin | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

first = {1, 2, 3, 4, 5, 6} second = {4, 5, 6, 7, 8, 9} third={2,4,6,8,0} fourth=([4,6,8,5]) print(first | second | third ) prin

15th May 2020, 6:12 AM
Taiwo Yusuf
Taiwo Yusuf - avatar
3 Answers
+ 3
The <fourth> is not a `set` object actually, it's a `tuple` object. What do you mean "for integers to generate a set?" For next time, use the thread title to describe issue briefly, and put extra information (details, codes links, external links) inside the thread Description. There is more room to type inside the thread Description field. And you won't get your text truncated, unless it's too big (share link instead for big stuffs - including big codes). * How to share links 👇 https://www.sololearn.com/post/75089/?ref=app
15th May 2020, 6:24 AM
Ipang
0
Ooh incomplete
15th May 2020, 6:13 AM
Taiwo Yusuf
Taiwo Yusuf - avatar
0
My question is ....is([ ]) allowed for integers to generate a set?
15th May 2020, 6:15 AM
Taiwo Yusuf
Taiwo Yusuf - avatar