How to write this program in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to write this program in python?

How to write a program that generate a set of prime numbers and another set of odd numbers and display the result of union, intersection ,difference and symmetry difference operations

5th May 2019, 5:51 AM
k R :)
k R :) - avatar
5 Answers
+ 1
line 1 x*2+1 line 6 while j < i/2 + 1:
5th May 2019, 7:50 AM
Gordon
Gordon - avatar
+ 2
https://code.sololearn.com/c4Lpj2IDn73y/?ref=app The answer is not correct in this code
5th May 2019, 7:13 AM
k R :)
k R :) - avatar
+ 2
Thank you
5th May 2019, 8:10 AM
k R :)
k R :) - avatar
+ 1
Please finish your first question first. https://www.sololearn.com/Discuss/1789055/?ref=app After you succeed for Question 1. Code an attempt for question 2. Post your attempt here if you get stuck.
5th May 2019, 6:05 AM
Gordon
Gordon - avatar
+ 1
Alright, let's proceed to this question now. Do you have a code attempt for this one, if so, please share.
5th May 2019, 6:55 AM
Gordon
Gordon - avatar