List of percentage positives in 2.7

前端 未结 0 1999
轮回少年
轮回少年 2020-12-12 18:34

How can i find the percentage of positive numbers in a list for Python 2.7? for example A=[3,8,-12,-15] the output of positives numbers to be 50% (i searched some similar ca

相关标签:
回答
  • 消灭零回复
提交回复
热议问题