#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목중간참조문제 3번2021-04-16 15:42
작성자
def isPrime(num,L):
    L=[]
    for i in range(1,num+1):
        if num%i==0 :
            L.append(i)

    if len(L) == 2:
        return True
    elif len(L) > 2:
        print(L)
        return False

print(isPrime(7,))


함수가 제대로 만들어 졌는지 확인하고 싶은데 두번째 입력파라메터에 뭘 넣어야 하나요?
댓글
이전중간고사 점검 문제 4번 질문입니다.2021-04-16
다음step4 구구단 2021-04-16