forum

home / developersection / forums / generate a list of all even, odd and prime numbers up to n in python with explanation

Generate a list of all even, odd and prime numbers up to n in python with explanation

Anubhav Kumar 278 23-Apr-2025

Using list comprehension.


Updated on 27-Apr-2025
Anubhav Kumar

Student

The Anubhav portal was launched in March 2015 at the behest of the Hon'ble Prime Minister for retiring government officials to leave a record of their experiences while in Govt service .

Can you answer this question?

Answer

1 Answers

Liked By