- 3
Solve this
If we gave +500,+25,+55,-25,-52,+25 How we can separate positive and negative numbers in python
6 Antworten
+ 3
Separate them means?
+ 3
If you have the whole thing in a string use the split() method
+ 2
First step: edit your question explaining what "separate" means in this context.
Second step: edit your question including a link to your code in Code Playground.
Third step: edit your question explaining your difficulties.
This way, we'll know how to help you.
+ 1
mehrdad nka Read about list comprehensions. They are great for this.
But, first, let the OP show some effort. Having someone else solving the whole problem doesn't help to learn at all.
0
Emerson Prado , number 0, he needs to edit his question and add "please" at the beginning of his title
0
Emerson Prado , the guy wants upvotes (as if it's an oxygen for the lungs)😁