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

제목구구단 함수 작성 질문2022-04-10 11:28
작성자

제가 함수를 이렇게 작성했는데요

def calcGugudan(x):

    return print(x, "*", 1, "=", x*1), print(x, "*", 2, "=", x*2), print(x, "*", 3, "=", x*3),print(x, "*", 4, "=", x*4), print(x, "*", 5, "=", x*5), print(x, "*", 6, "=", x*6),print(x, "*", 7, "=", x*7),print(x, "*", 8, "=", x*8), print(x, "*", 9, "=", x*9)


밑에 있는 calcGugudan(4)를 실행해보면 

이렇게 나옵니다. 저렇게 맨 밑줄에 (None, None, None, None, None, None, None, None, None)라고 나오는 이유는 무엇일까요?

댓글
이전[re][re]2021 2학기 00반 기출 질문2022-04-12
다음[re]구구단 함수 작성 질문2022-04-11