본문 바로가기

python

(197)
Python Learn the basics Quiz 46 Q> "Fizz buzz" is a word game we will use to teach the robots about division. ("Fizz buzz"는 로봇이 분단에 대해 가르치는 단어 게임입니다.) Let's learn computers. (컴퓨터를 배우자.) You should write a function that will receive a positive integer and return: (양의 정수를 반환하는 함수를 작성해야합니다.) "Fizz Buzz" if the number is divisible by 3 and by 5; (숫자가 3과 5로 나눌 수 있다면 "Fizz Buzz";) "Fizz" if the number is divisible by 3; (숫자가 3으로 나눌 ..
Python Learn the basics Quiz 45 Q> You have a table with all available goods in the store. The data is represented as a list of dicts. (상점에 사용 가능한 모든 상품이 들어있는 테이블이 있습니다. 데이터는 딕셔너리로 표시됩니다.) Your mission here is to find the TOP most expensive goods. (당신의 임무는 TOP에서 가장 비싼 물건을 찾는 것입니다.) The amount we are looking for will be given as a first argument and the whole data as the second one. (우리가 찾고있는 금액은 첫 번째 인수로 주어지며 전체 데이터는 두 번째 인수로 ..
Python Learn the basics Quiz 44 Q> You are given a string and two markers (the initial and final). You have to find a substring enclosed between these two markers. But there are a few important conditions: (문자열과 두 개의 마커 (초기 및 최종)가 주어집니다. 이 두 마커 사이에있는 부분 문자열을 찾아야합니다. 그러나 몇 가지 중요한 조건이 있습니다.) The initial and final markers are always different.(초기 및 최종 마커는 항상 다름) If there is no initial marker, then the first character should be co..
Python Learn the basics Quiz 43 Q> In this mission your task is to determine the popularity of certain words in the text. (이 임무에서 당신의 임무는 텍스트의 특정 단어의 인기를 결정하는 것입니다.) At the input of your function are given 2 arguments: the text and the array of words the popularity of which you need to determine. (함수의 입력에는 두 가지 인수가 제공됩니다. 텍스트와 단어의 배열을 결정해야합니다.) When solving this task pay attention to the following points: (이 작업을 해결할 때 다음 사항에주의..
Python Learn the basics Quiz 42 Q> You are given the current stock prices. You have to find out which stocks cost more. (현재 주식 가격이 주어집니다. 어떤 주식이 더 많이 들었는지 알아야합니다.) Input: The dictionary where the market identifier code is a key and the value is a stock price. (시장 식별자 코드가 키이고 값이 주가 인 딕셔너리.) Output: A string and the market identifier code. (문자열과 시장 식별자 코드.) Example: best_stock({ 'CAC': 10.0, 'ATX': 390.2, 'WIG': 1.2 }) == 'ATX' ..
Python Learn the basics Quiz 41 Q> You are given two strings and you have to find an index of the second occurrence of the second string in the first one. (두 개의 문자열이 주어지고 첫 번째 문자열에서 두 번째 문자열이 두 번째 나타나는 색인을 찾아야합니다.) Let's go through the first example where you need to find the second occurrence of "s" in a word "sims". ("sims"라는 단어에서 두 번째 "s"가 필요한 첫 번째 예제를 살펴 보겠습니다.) It’s easy to find its first occurrence with a function index ..
190531>Korea News keyword wordcloud - Import Modulefrom Crawler import crawler from wordcloud import WordCloud from matplotlib import pyplot from collections import Counter from konlpy.tag import Okt import datetime as dt - Korea News Keyword Wordcloud현재 뉴스에서 많이 사용중인 키워드 분석 시각화 모듈WordCloud를 활용하여 시각화190531 키워드 분석 시각화 - 현재 키워드 : 갯수 '성장': 56, '호르몬': 53, '문제': 48, '정부': 42, '기자': 42, '우리': 41, '사고': 40, '한국': 38, '미국': 35, '금지': 34, '..
Pandas - 190529모니터 제품 비교 분석 1. Import Modulefrom Crawler import crawler from pandas import DataFrame from pandas import concat 2. Parsing Data검색할 내용을 입력하세요 : 모니터 제품명 ... 호스트0 삼성전자 S27R750 SPACE ... NaN0 삼성전자 S32R750 SPACE ... NaN0 삼성전자 C32F397 ... NaN0 삼성전자 S24F350 ... NaN0 삼성전자 S24D300 ... NaN0 삼성전자 C27F391 ... NaN0 삼성전자 S24F350 ... NaN0 LG전자 24MK400H ... NaN0 삼성전자 C27F390 ... NaN0 한성컴퓨터 Ultron 2457C 커브드 144 ... NaN0 한성컴퓨..