파이썬 오류 typeerror: unsupported operand type(s) for +: ‘int’ and...

파이썬 오류 typeerror: unsupported operand type(s) for +: ‘int’ and...

작성일 2023.10.02댓글 1건
    게시물 수정 , 삭제는 로그인 필요

import math
a,b,c,d,e=map(int,input(‘숫자 입력:‘).split(‘,’))
A=[’a/b bc (c+d) b**c round(e/b)’]
X = print(max(A))
N = print(max(B))
print(‘A의 최댓값은 {}이고, 최솟값은 {}이다.‘ .format(X,N))
B = print(sum(A))
R = print(round(B))
C = print(math.ceil(B))
F = print(math.floor(B))
print(‘B의 반올림은 {}이고 올림은 {}이고 내림은 {}이다.‘ . format(R,C,F)


typeerror: unsupported operand type(s) for +: ‘int’ and ‘str’와 nonetype object가 떠요 어떻게 고쳐야하나요


#파이썬 오류 검사 사이트 #파이썬 오류 #파이썬 오류 종류 #파이썬 오류 무시 #파이썬 오륜기 그리기 #파이썬 오류 검사 #파이썬 오류 출력 #파이썬 오류 발생 #파이썬 오류 메시지 출력 #파이썬 오류처리

profile_image 익명 작성일 -

발생한 오류는 int와 str의 연산이 지원되지 않는다는 것이며, nonetype object가 존재한다는 것을 의미한다.