분류 전체보기 299

[Hacker Rank] Occupations

📢 본 포스팅에 활용되는 기본 문제 및 자료 출처는 HackerRank 임을 밝힙니다. https://www.hackerrank.com ■ 문제 https://www.hackerrank.com/challenges/occupations/problem?isFullScreen=true Occupations | HackerRank Pivot the Occupation column so the Name of each person in OCCUPATIONS is displayed underneath their respective Occupation. www.hackerrank.com Pivot the Occupation column in OCCUPATIONS so that each Name is sorted alp..

[Hacker Rank] Type of Triangle

📢 본 포스팅에 활용되는 기본 문제 및 자료 출처는 HackerRank 임을 밝힙니다. https://www.hackerrank.com ■ 문제 https://www.hackerrank.com/challenges/what-type-of-triangle/problem?isFullScreen=true Type of Triangle | HackerRank Query a triangle's type based on its side lengths. www.hackerrank.com Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the following ..

[Hacker Rank] Weather Observation Station 16

📢 본 포스팅에 활용되는 기본 문제 및 자료 출처는 HackerRank 임을 밝힙니다. https://www.hackerrank.com ■ 문제 https://www.hackerrank.com/challenges/weather-observation-station-16/problem?isFullScreen=true Weather Observation Station 16 | HackerRank Query the smallest of STATION's Northern Latitudes that is greater than 38.7780, and round to 4 decimal places www.hackerrank.com Query the smallest Northern Latitude (LAT_N) fro..

[Hacker Rank] Weather Observation Station 14

📢 본 포스팅에 활용되는 기본 문제 및 자료 출처는 HackerRank 임을 밝힙니다. https://www.hackerrank.com ■ 문제 https://www.hackerrank.com/challenges/weather-observation-station-14/problem?isFullScreen=true Weather Observation Station 14 | HackerRank Query the greatest value of the Northern Latitudes from STATION that are under 137.2345 and truncated to 4 decimal places. www.hackerrank.com SELECT TRUNCATE(LAT_N, 4) FROM STATI..

[Python] Data type : 딕셔너리(Dictionary) 와 셋(Set)

딕셔너리(Dictionary) 와 셋(Set) 딕셔너리(Dictionary) Key:value 형태로 데이터를 묶는 데이터 타입 시퀀스 데이터타입과는 다르게 '키 값'으로 인덱싱을 한다. 딕셔너리 생성하기 방법1) 직접 {key1:value1, key2:value2, key3:value3 …} 형태로 생성 menu = {'americano':1500, 'latte':2500, 'Frappuccino':4000, 'ice':500, 'juice':4500} print(menu, type(menu)) 방법2) 딕셔너리의 Constructor 이용하기 dict(key1=value1, key2=value2 …) menu = dict(americano=1500, latte=2500, Frappuccino=4000..

Python 2022.08.22