- first_list = [1,2,3,4,5,6,7,8,9]
- second_list = [10,11,12,13,14,15,16,17,18,19]
- final_list = []
- for x in first_list:
- if x % 2 != 0:
- final_list.append(x)
- for y in second_list:
- if y % 2 == 0:
- final_list.append(y)
- print(final_list)
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Salman BegRank #284 · 8.8K reputationPosted Nov 5, 2020, 2:45 AM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Nov 5, 2020, 3:16 AM EST
Sagar LadRank #523 · 4.7K reputationPosted Aug 19, 2021, 10:37 AM EDT