How to list out odd numbers in python from a text file? [closed]











up vote
-4
down vote

favorite












I have a textfile of numbers and I have to list out the odd numbers from the file. How do I do that without 'import'? Can I do it with def function?










share|improve this question















closed as unclear what you're asking by Thierry Lathuille, hiro protagonist, jpp, DeepSpace, Patrick Artner Nov 18 at 15:20


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • welcome to stackoverflow! please take the tour, read up on how to ask a question and provide a minimal, complete and verifiable example that reproduces your problem.
    – hiro protagonist
    Nov 18 at 14:59






  • 1




    Possible duplicate of counting odd numbers in a list python
    – daniela-idara
    Nov 18 at 15:02






  • 1




    @topu Then read the file to a list, then apply said answer. That's the point of duplicate questions, so we don't need to answer the same questions over and over again.
    – DeepSpace
    Nov 18 at 15:07












  • this stackoverflow link should help counting odd numbers in a list python
    – daniela-idara
    Nov 18 at 15:08






  • 1




    SO is about fixing your Code - not implementing your ideas. Please go over how to ask and on-topic again and if you have questions provide your code as Minimal, Complete, and Verifiable example.
    – Patrick Artner
    Nov 18 at 15:20















up vote
-4
down vote

favorite












I have a textfile of numbers and I have to list out the odd numbers from the file. How do I do that without 'import'? Can I do it with def function?










share|improve this question















closed as unclear what you're asking by Thierry Lathuille, hiro protagonist, jpp, DeepSpace, Patrick Artner Nov 18 at 15:20


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • welcome to stackoverflow! please take the tour, read up on how to ask a question and provide a minimal, complete and verifiable example that reproduces your problem.
    – hiro protagonist
    Nov 18 at 14:59






  • 1




    Possible duplicate of counting odd numbers in a list python
    – daniela-idara
    Nov 18 at 15:02






  • 1




    @topu Then read the file to a list, then apply said answer. That's the point of duplicate questions, so we don't need to answer the same questions over and over again.
    – DeepSpace
    Nov 18 at 15:07












  • this stackoverflow link should help counting odd numbers in a list python
    – daniela-idara
    Nov 18 at 15:08






  • 1




    SO is about fixing your Code - not implementing your ideas. Please go over how to ask and on-topic again and if you have questions provide your code as Minimal, Complete, and Verifiable example.
    – Patrick Artner
    Nov 18 at 15:20













up vote
-4
down vote

favorite









up vote
-4
down vote

favorite











I have a textfile of numbers and I have to list out the odd numbers from the file. How do I do that without 'import'? Can I do it with def function?










share|improve this question















I have a textfile of numbers and I have to list out the odd numbers from the file. How do I do that without 'import'? Can I do it with def function?







python-3.x






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 18 at 15:09









DeepSpace

34.2k43765




34.2k43765










asked Nov 18 at 14:56









topu

12




12




closed as unclear what you're asking by Thierry Lathuille, hiro protagonist, jpp, DeepSpace, Patrick Artner Nov 18 at 15:20


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as unclear what you're asking by Thierry Lathuille, hiro protagonist, jpp, DeepSpace, Patrick Artner Nov 18 at 15:20


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • welcome to stackoverflow! please take the tour, read up on how to ask a question and provide a minimal, complete and verifiable example that reproduces your problem.
    – hiro protagonist
    Nov 18 at 14:59






  • 1




    Possible duplicate of counting odd numbers in a list python
    – daniela-idara
    Nov 18 at 15:02






  • 1




    @topu Then read the file to a list, then apply said answer. That's the point of duplicate questions, so we don't need to answer the same questions over and over again.
    – DeepSpace
    Nov 18 at 15:07












  • this stackoverflow link should help counting odd numbers in a list python
    – daniela-idara
    Nov 18 at 15:08






  • 1




    SO is about fixing your Code - not implementing your ideas. Please go over how to ask and on-topic again and if you have questions provide your code as Minimal, Complete, and Verifiable example.
    – Patrick Artner
    Nov 18 at 15:20


















  • welcome to stackoverflow! please take the tour, read up on how to ask a question and provide a minimal, complete and verifiable example that reproduces your problem.
    – hiro protagonist
    Nov 18 at 14:59






  • 1




    Possible duplicate of counting odd numbers in a list python
    – daniela-idara
    Nov 18 at 15:02






  • 1




    @topu Then read the file to a list, then apply said answer. That's the point of duplicate questions, so we don't need to answer the same questions over and over again.
    – DeepSpace
    Nov 18 at 15:07












  • this stackoverflow link should help counting odd numbers in a list python
    – daniela-idara
    Nov 18 at 15:08






  • 1




    SO is about fixing your Code - not implementing your ideas. Please go over how to ask and on-topic again and if you have questions provide your code as Minimal, Complete, and Verifiable example.
    – Patrick Artner
    Nov 18 at 15:20
















welcome to stackoverflow! please take the tour, read up on how to ask a question and provide a minimal, complete and verifiable example that reproduces your problem.
– hiro protagonist
Nov 18 at 14:59




welcome to stackoverflow! please take the tour, read up on how to ask a question and provide a minimal, complete and verifiable example that reproduces your problem.
– hiro protagonist
Nov 18 at 14:59




1




1




Possible duplicate of counting odd numbers in a list python
– daniela-idara
Nov 18 at 15:02




Possible duplicate of counting odd numbers in a list python
– daniela-idara
Nov 18 at 15:02




1




1




@topu Then read the file to a list, then apply said answer. That's the point of duplicate questions, so we don't need to answer the same questions over and over again.
– DeepSpace
Nov 18 at 15:07






@topu Then read the file to a list, then apply said answer. That's the point of duplicate questions, so we don't need to answer the same questions over and over again.
– DeepSpace
Nov 18 at 15:07














this stackoverflow link should help counting odd numbers in a list python
– daniela-idara
Nov 18 at 15:08




this stackoverflow link should help counting odd numbers in a list python
– daniela-idara
Nov 18 at 15:08




1




1




SO is about fixing your Code - not implementing your ideas. Please go over how to ask and on-topic again and if you have questions provide your code as Minimal, Complete, and Verifiable example.
– Patrick Artner
Nov 18 at 15:20




SO is about fixing your Code - not implementing your ideas. Please go over how to ask and on-topic again and if you have questions provide your code as Minimal, Complete, and Verifiable example.
– Patrick Artner
Nov 18 at 15:20

















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]