로그인 바로가기 하위 메뉴 바로가기 본문 바로가기

데이터 구조 및 분석: Linear Structure and Dynamic Programming

임시 이미지 KAIST 산업및시스템공학과 문일철
http://kooc.kaist.ac.kr/datastructure-2019s/forum/124006
좋아요 1779 수강생 3367

1강 예제를 

아래와 같이 형변환을 변경하였더니 실행됩니다.

 

교수님이 판서해준대로 할때 그대로 따라할때 왜 안될까요?

 

https://www.edwith.org/datastructure-2019s/lecture/40274?isDesc=false 

 

def main():

    print ("hello" )

    

    score1 = 1

    # score2 = 7

    score2 = input("enter:")

    score3 = int(score2)

    average = (score1 + score3) / 2.0;

    

    print (average)

    

main()