강의

멘토링

로드맵

Inflearn brand logo image

인프런 커뮤니티 질문&답변

미뇨비님의 프로필 이미지
미뇨비

작성한 질문수

프로그래밍, 데이터 과학을 위한 파이썬 입문

– Code Assignment: Basic Operations

무엇이 잘못 되었을까요?

작성

·

203

0

음.. 제가 문제를 잘못 이해한건지 모르겠으나,

우선 제가 파악한 대로 한 후, submit 을 실행하면 위에 형변환은 pass가 나오지만, 나머지 사칙연산 라인은 fail로 나옵니다.

무슨 문제일까요?

# string과 string 더하기================================================

def add_string_string(str_1, str_2):

    result = add_string_string(str_1, str_2)

    return result

# 사칙연산==============================================================

def associative_law_add(a, b, c):

    result = commutative_law(a, b, c)

    return result

def associative_law_mutiple(a, b, c):

    result = associative_law_mutiple(a, b, c)

    return result

def distributive_law(a, b, c):

    result = distributive_law(a, b, c)

    return result

# 지수연산=============================================================

def exponent(base, power):

    result = exponent(base, power)

    return result

답변 1

0

미뇨비님의 프로필 이미지
미뇨비
질문자

해결되었습니다!제가 잘못 이해했네요

미뇨비님의 프로필 이미지
미뇨비

작성한 질문수

질문하기