본문 바로가기

Python_Matter

(328)
Python Learn the basics Quiz 88 Q> For language training our Robots want to learn about suffixes. (언어 훈련을 위해 로봇은 접미사에 대해 배우고 싶습니다.) In this task, you are given a set of words in lower case. (이 작업에서는 소문자로 된 단어 집합이 제공됩니다.) Check whether there is a pair of words, such that one word is the end of another (a suffix of another). (한 단어가 다른 단어의 끝 (다른 접미사)과 같은 단어 쌍이 있는지 확인하십시오.) For example: {"hi", "hello", "lo"} -- "lo" is the end of ..
Python Learn the basics Quiz 87 Q> What is your favourite day of the week? (당신이 가장 좋아하는 요일은 무엇입니까?) Check if it's the most frequent day of the week in the year. (일년 중 가장 빈번한 요일인지 확인하십시오.) You are given a year as integer (e. g. 2001). (당신은 일년 정수로 주어진다 (예를 들면 2001 년).) You should return the most frequent day(s) of the week in that year. (그 해에 가장 빈번한 요일을 반환해야합니다.) The result has to be a list of days sorted by the order of days in..
Python Learn the basics Quiz 86 Q> Your mission is to convert the name of a function (a string) from the Python format (for example "my_function_name") into CamelCase ("MyFunctionName"), where the first char of every word is in uppercase and all words are concatenated without any intervening characters. (당신의 임무는 함수의 이름 (문자열)을 Python 형식 (예 : "my_function_name")에서 CamelCase ( "MyFunctionName")로 변환하는 것입니다. 여기서 모든 단어의 첫 번째 문자는 대문자..
Python Learn the basics Quiz 85 Q> Long numbers can be made to look nicer, so let’s write some code to do just that. (긴 숫자가 더 멋지게 보이도록 만들 수 있습니다. 그러기 위해 코드를 작성해 봅시다.) You should write a function for converting a number to string using several rules. (여러 규칙을 사용하여 숫자를 문자열로 변환하는 함수를 작성해야합니다.) First of all, you will need to cut the number with a given base (base argument; default 1000). (우선, 주어진 기본 (기본 인수, 기본 1000)으로 번호를 잘라야합니다.) ..
Python Learn the basics Quiz 84 Q> The flocks of crows circled over the battlefield. (까마귀 무리가 전장을 돌았습니다. Many brave warriors have fallen in this battle, many have continued to fight. (많은 용감한 전사들이이 전투에 빠졌고 많은 사람들이 계속 싸웠습니다. ) "If this goes on, we’ll simply kill each other, and there will be no winners - we’ll all lose." - reflected Sir Ronald, watching a bleak picture in front of him. ("이것이 계속된다면, 우리는 단순히 서로를 죽일 것이며, 승자도 없을 것입니..
Python Learn the basics Quiz 83 Q> ...the clashes between different soldiers occurred here and there, and the new troops kept coming. (... 여러 군인 들간의 충돌이 여기저기서 발생했고 새로운 군대가 계속오고있었습니다.) The conflict gradually was starting to look more like a small war. (갈등은 점점 더 작은 전쟁처럼 보이기 시작했습니다. ) "Knights, hear my command! Take your shields! Strengthen the armor! We are taking too much beating," ("기사 들아, 내 명령을 들으 라! 방패를 잡아라! 갑옷을 강화하라! 너무 많이 ..
Python Learn the basics Quiz 82 Q> ..Sir Ronald’s opponent - Umbert, has proved to be a very skillful warrior. (.. Ronald의 상대 인 Umbert는 매우 숙련 된 전사로 판명났습니다.) In addition, he was a good fifteen years younger, which gave him a certain advantage. (또한, 그는 15 년 더 젊어서 그에게 약간의 이점을주었습니다.) But Sir Ronald was also very strong - he had the experience of participation in many battles and in several major wars behind his back. (그러나 로날드 경 또한..
Python Learn the basics Quiz 81 Q> Assuming you are developing a user based system like facebook, you will want to provide the functionality to search for other members regardless of the presence of accents in a username. (페이스 북과 같은 사용자 기반 시스템을 개발 중이라고 가정하면 사용자 이름에 액센트가 있는지 여부에 관계없이 다른 회원을 검색하는 기능을 제공하는 것이 좋습니다.) Without using 3rd party collation library, you will need to remove the accents from username before comparison. (타사..