<jupyter_start><jupyter_text>2021년 9월 5일 일요일 BaekJoon - 성적 통계 (Python) 문제 : https://www.acmicpc.net/problem/5800 블로그 : https://somjang.tistory.com/entry/BaekJoon-5800%EB%B2%88-%EC%84%B1%EC%A0%81-%ED%86%B5%EA%B3%84-Python  Solution<jupyter_code>def grade_statistics(grade_list):
    grade_list = list(map(int, grade_list.split()))[1:]
    
    gap_list = []
    
    grade_list = sorted(grade_list)
    
    for i in range(len(grade_list) - 1):
        gap = grade_list[i+1] - grade_list[i]
        
        gap_list.append(gap)
        
    
    return f"Max {grade_list[-1]}, Min {grade_list[0]}, Largest gap {max(gap_list)}"


if __name__ == "__main__":
    for idx in range(1, int(input()) + 1):
        grade_list = input()
        print(f"Class {idx}")
        print(grade_statistics(grade_list))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1552346570397112, 'fraction_numerical': 0.04332129963898917, 'mean_word_length': 3.356020942408377, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '630880', 'license': 'MIT', 'n_tokens_mistral': 367, 'n_tokens_neox': 358, 'n_words': 51, 'path': 'DAY 401 ~ 500/DAY474_[BaekJoon] 성적 통계 (Python).ipynb', 'repo_name': 'SOMJANG/CODINGTEST_PRACTICE', 'size': '831'}