IT공부/Python daily simple programing (3) 썸네일형 리스트형 자료형변환[Type casting] - 변환 값 출력하기 출처 JetBrains Academy Computer science > Programming languages > Python > Working with data > Data types and operations > Basic data types and operations > Type casting 지문 아래에 주어진 자료형 변환의 결과를 알맞게 짝 지으세요. (1) int("10,0") - (4) 10 (2) float(10) - (3) "10.0" (3) str(10.0) - (5) "10" (4) int(10.3) - (1) ValueError (5) str(10) - (2) 10.0 원문 Match each type casting with the result it produces. (1) int(.. Boolean logic - Boolean 값 출처 파이썬 코딩도장_연산자 우선순위 JetBrains Academy Computer science > Programming languages > Python > Working with data > Data types and operations > Boolean > Boolean logic 지문 아래와 같이 Boolean값을 갖는 변수들이 있다고 가정할 때: a = True b = False c = a and not b 다음 값을 print()함수로 출력할 때의 결과를 적어주세요: a and (not c or d) 힌트: 파이썬에서의 연산자간의 우선순위에 대해 참고하세요. # 여기에 답을 결과를 작성해주세요. False 원문 Assuming that variables have the following b.. 인덱스(Indexes) - 세번째 값 찾기 출처 JetBrains Academy Computer science > Programming languages > Python > Working with data > Collections > Lists > Indexes 지문 숫자들을 요소로 갖는 prices라는 이름을 가진 list 자료형이 있다고 할 때, 리스트의 세번째 숫자를 출력하세요. 예를 들어, prices가 [170, 309, 224, 991, 4000] 이라면, 224를 출력해야 합니다. # 아래의 줄은 사용자로부터 list를 입력받아 변수 prices에 저장합니다.아래의 코드는 수정하지 말고 사용해 주세요. # split() 함수는 입력받은 값(문자열)을 리스트 자료형으로 변환하기 위하여 사용되었습니다. prices = input().sp.. 이전 1 다음