본문 바로가기

Python_Matter/Solve

(117)
Python Learn the basics Quiz 61 Q> You are given a text, which contains different english letters and punctuation symbols. (다른 영어 문자와 구두점 기호가 포함 된 텍스트가 제공됩니다.) You should find the most frequent letter in the text. (본문에서 가장 빈번한 편지를 찾아야합니다.) The letter returned must be in lower case. (반환 된 서신은 소문자 여야합니다.) While checking for the most wanted letter, casing does not matter, so for the purpose of your search, "A" == "a". (가장 원하는 편지를..
Python Learn the basics Quiz 60 Q> In this mission you should check if all elements in the given list are equal. (이 임무에서 주어진 목록의 모든 요소가 같은지 확인해야합니다.) Input: List. Output: Bool. Example: all_the_same([1, 1, 1]) == True all_the_same([1, 2, 1]) == False all_the_same(['a', 'a', 'a']) == True all_the_same([]) == True The idea for this mission was found on Python Tricks series by Dan Bader. (이 임무에 대한 아이디어는 Dan Bader의 Python Tricks 시..
Python Learn the basics Quiz 59 Q> If you have 50 different plug types, appliances wouldn't be available and would be very expensive. (50 가지 플러그 유형이 있다면 어플라이언스를 사용할 수 없으며 매우 비쌉니다.) But once an electric outlet becomes standardized, many companies can design appliances, and competition ensues, creating variety and better prices for consumers. (그러나 전기 콘센트가 표준화되면 많은 기업들이 어플라이언스를 설계 할 수있게되고 경쟁이 일어나 소비자의 다양성과 가격이 향상됩니다.) -- Bill Gat..
Python Learn the basics Quiz 58 Q> Stephan and Sophia forget about security and use simple passwords for everything. (Stephan과 Sophia는 보안을 잊어 버리고 모든 것에 간단한 암호를 사용합니다.) Help Nikola develop a password security check module. (Nikola가 암호 보안 검사 모듈을 개발하도록 도와주세요.) The password will be considered strong enough if its length is greater than or equal to 10 symbols, it has at least one digit, as well as containing one uppercase letter an..
Python Learn the basics Quiz 57 Q> Let's try some sorting. (정렬을 해보죠.) Here is an array with the specific rules. (여기에 특정 규칙이있는 배열이 있습니다.) The array (a tuple) has various numbers. (배열 (튜플)에는 다양한 숫자가 있습니다.) You should sort it, but sort it by absolute value in ascending order. (그것을 정렬해야하지만, 오름차순으로 절대 값으로 정렬하십시오.) For example, the sequence (-20, -5, 10, 15) will be sorted like so: (-5, 10, 15, -20). (예를 들어, 순서 (-20, -5, 10, 15)는 (-..
Python Learn the basics Quiz 56 Q> Your mission here is to create a function that gets a tuple and returns a tuple with 3 elements - the first, third and second to the last for the given array. (여기서 당신의 임무는 튜플을 얻고 주어진 배열의 첫 번째, 세 번째, 두 번째의 세 요소를 가진 튜플을 반환하는 함수를 만드는 것입니다.) Input: A tuple, at least 3 elements long. (최소한 3 요소 길이의 튜플.) Output: A tuple. (튜플.) Example: easy_unpack((1, 2, 3, 4, 5, 6, 7, 9)) == (1, 3, 7) easy_unpack((..
Python Learn the basics Quiz 55 Q> You are given a string where you have to find its first word. (당신은 첫 단어를 찾아야 만하는 문자열을 받게됩니다.) This is a simplified version of the First Word mission. (이것은 First Word 임무의 단순화 된 버전입니다.) Input string consists of only english letters and spaces.(입력 문자열은 영문자와 공백으로만 구성됩니다.) There aren’t any spaces at the beginning and the end of the string.(문자열의 처음과 끝에는 공백이 없습니다.) Input: A string.(문자열) Output: A st..
Python Learn the basics Quiz 54 Q> You are given a positive integer. (양의 정수가 주어집니다.) Your function should calculate the product of the digits excluding any zeroes. (함수는 0을 제외한 자릿수를 계산해야합니다.) For example: The number given is 123405. (예 : 주어진 숫자는 123405입니다.) The result will be 1*2*3*4*5=120 (don't forget to exclude zeroes). (결과는 1 * 2 * 3 * 4 * 5 = 120입니다 (0을 제외하는 것을 잊지 마십시오).) Input: A positive integer. (양의 정수.) Output: The pro..