<jupyter_start><jupyter_text>Plus Minus- Python3 ![plus-minus](https://www.dropbox.com/s/p6vdjnt75qxflbq/%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%202018-06-10%2015.18.26.png?raw=1)<jupyter_code>#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the plusMinus function below.
def plusMinus(arr):
    '''
    list에서 개수를 카운트 => 
    positive/Total
    negative/Total
    Zeros/Total
    '''
    total_number = len(arr)
    positive_num = 0
    negative_num = 0
    try:
        for i in arr:
            if i > 0:
                positive_num+=1
            elif i < 0:
                negative_num+=1
            else:
                pass

        print("{:.6f}".format(positive_num/total_number))
        print("{:.6f}".format(negative_num/total_number))
        print("{:.6f}".format((total_number-positive_num-negative_num)/total_number))

    except ZeroDivisionError:
        print("빈 리스트를 입력하셨습니다")
if __name__ == '__main__':
    n = int(input())

    arr = list(map(int, input().rstrip().split()))

    plusMinus(arr)<jupyter_output>6
-4 3 -9 0 4 1
0.500000
0.333333
0.166667
{'fraction_non_alphanumeric': 0.1404140414041404, 'fraction_numerical': 0.063006300630063, 'mean_word_length': 2.57556270096463, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '92587', 'license': 'MIT', 'n_tokens_mistral': 478, 'n_tokens_neox': 437, 'n_words': 74, 'path': 'HackerRank/algorithms/warmup/001.plus-minus.ipynb', 'repo_name': 'zzsza/Algorithm-Training', 'size': '1111'}