samedi 11 janvier 2020

How to solve this task using python?

i am new here, so yesterday i got some task using python to do
But i can't completed it, i wonder if anyone could help me.

So, the task is:

Create a program where users can input numbers as they wish,
But only odd or even numbers will be printed.

Example:
Input:
1, 3, 2, 6, 9, 10 (the user will input so it is not set in your program)
odd / even? (you can choose to make odd or even print codes)

Output:
if even : 2, 6, 10
if odd : 1, 3, 9

Aucun commentaire:

Enregistrer un commentaire