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

제목오류를 못찾겟습니다 stack overflow 참조해봐도 안되서 올립니다.2018-12-31 14:08
작성자

mb-file.php?path=2018%2F12%2F31%2FF79_%EC%BA%A1%EC%B2%983.PNG
3번째 줄에 일일이 int를 쳐주면 잘돌아갑니다. 그게 귀찮아서 다른 방법이 없을까 하여 보닏

map 내장 함수를 이용하면 조금 과정을 단출히 할 수 있었는데 이러니 int object is not callable 에러가 나옵니다....


gr=input().split( )

list(map(int(),gr))

if 0<(gr[0])<100 and 0<(gr[1])<100 and 0<(gr[2])<100 and 0<(gr[3])<100:

    if (((gr[0])+(gr[1])+(gr[2])+(gr[3]))/4)>80:

        print('합격')

    if ((int(gr[0])+int(gr[1])+int(gr[2])+int(gr[3]))/4)<80:

        print('합격')

else:

    print('잘못된 점수') 




댓글