<jupyter_start><jupyter_text>2021년 10월 3일 일요일 BaekJoon - 완전제곱수 (Python)  문제 : https://www.acmicpc.net/problem/1977 블로그 : https://somjang.tistory.com/entry/BaekJoon-1977%EB%B2%88-%EC%99%84%EC%A0%84%EC%A0%9C%EA%B3%B1%EC%88%98-Python  Solution<jupyter_code>def get_perfect_square_numbers():
    return [pow(num, 2) for num in range(1, 101)]

def perfect_square(num1, num2, perfect_square_numbers):
    square_num = [num for num in perfect_square_numbers if num1 <= num <= num2]
    
    if len(square_num) == 0:
        answer = [-1]
    else:
        answer = sum(square_num), min(square_num)
    
    return answer
    
    
    
if __name__ == "__main__":
    num1 = int(input())
    num2 = int(input())
    
    perfect_square_numbers = get_perfect_square_numbers()
    answer = perfect_square(num1, num2, perfect_square_numbers)
    
    for num in answer:
        print(num)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12679162072767364, 'fraction_numerical': 0.05292171995589857, 'mean_word_length': 3.6091370558375635, 'pattern_counts': {'":': 1, '<': 7, '<?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': '264954', 'license': 'MIT', 'n_tokens_mistral': 391, 'n_tokens_neox': 369, 'n_words': 64, 'path': 'DAY 501 ~ 600/DAY501_[BaekJoon] 완전제곱수 (Python).ipynb', 'repo_name': 'SOMJANG/CODINGTEST_PRACTICE', 'size': '907'}