강의

멘토링

커뮤니티

Inflearn Community Q&A

banko's profile image
banko

asked

Introduction to Python for Programming and Data Science

- Code Assignment: Go With Flow

number of cases 코드

Written on

·

257

0

def number_of_cases(list_data):
    list_permutation=[]

    for i in list_data:
        for j in list_data:

            num1=str(i)

            num2=str(j)


            list_permutation.append(num1+num2)

    result = list_permutation

    return result


테스트 해 봤을때 결과도 맞게 나오는데 숙제 제출하면 failed라고 나오네요... 뭐가 문제인지 잘 모르겠습니다 ㅠㅠ
bigdatapython

Answer 1

0

TeamLab님의 프로필 이미지
TeamLab
Instructor

list_data = ["a", "a", 1,2,3] 같은 데이터를 입력하면 확인이 가능할거 같습니다.

banko's profile image
banko

asked

Ask a question