본문 바로가기

Python_Matter/Solve

(117)
Python Learn the basics Quiz 101 Q> There is a lunch place at your work with the 3 microwave ovens (Мicrowave1, Мicrowave2, Мicrowave3), which are the subclasses of the MicrowaveBase class. (MicrowaveBase 클래스의 하위 클래스 인 세 개의 전자 레인지 (전자 레인지 1, 전자 레인지 2, 전자 레인지 3)가 있습니다.) Every microwave can be controlled by a RemoteControl. The RemoteControl uses the next commands: (모든 전자 레인지는 RemoteControl로 제어 할 수 있습니다. RemoteControl은 다음 명령을 사용합..
Python Learn the basics Quiz 100 Q> In this mission you should write you own py3 implementation (but you can use py2 for this) of the built-in functions min and max. (이 임무에서 당신은 py3 구현을 작성해야한다 (그러나 py2는 이것을 사용할 수있다). 내장 함수 min과 max.) Some builtin functions are closed here: import, eval, exec, globals. Don't forget you should implement two functions in your code. (일부 내장 함수는 여기에서 닫힙니다 : import, eval, exec, globals. 코드에 두 가지 기능을 구..
Python Learn the basics Quiz 99 Q> We have an array of two positive integers. (우리는 두 개의 양의 정수 배열을 가지고 있습니다.) Add these two numbers together. (이 두 숫자를 합치십시오.) Input: A list of two elements. Each element is a positive integer. (두 요소의 목록입니다. 각 요소는 양의 정수입니다.) Output: The sum of two numbers. (두 숫자의 합입니다.) Example: checkio([5, 5]) == 10 checkio([7, 1]) == 8 checkio([5, 5]) == 10 A> def checkio(data): """The sum of two integer elemen..
Python Learn the basics Quiz 98 Q> A pangram (Greek:παν γράμμα, pan gramma, "every letter") or holoalphabetic sentence for a given alphabet is a sentence using every letter of the alphabet at least once. (주어진 알파벳에 대한 팡그람 (그리스어 : πανγράμμα, 팬 그램, "모든 문자") 또는 홀로 알파벳 문자는 적어도 한 번 알파벳의 모든 문자를 사용하는 문장입니다.) Perhaps you are familiar with the well known pangram "The quick brown fox jumps over the lazy dog". (아마 당신은 유명한 pangram에 익숙합니다. ..
Python Learn the basics Quiz 97 Q> The Robots have found a chain of islands in the middle of the Ocean. (로봇은 대양의 한가운데에 일련의 섬들을 발견했습니다.) They would like to explore these islands and have asked for your help calculating the areas of each island. (그들은이 섬을 탐험하고 각 섬의 면적을 계산하는 데 도움을 요청했습니다.) They have given you a map of the territory. (그들은 당신에게 영토지도를주었습니다.) The map is a 2D array, where 0 is water, 1 is land. An island is a group of ..
Python Learn the basics Quiz 96 Q> You have a device that uses a Seven-segment display to display 2 digit numbers. (7 세그먼트 디스플레이를 사용하여 두 자리 숫자를 표시하는 장치가 있습니다.) However, some of the segments aren't working and can't be displayed. (그러나 일부 세그먼트가 작동하지 않아 표시 할 수 없습니다.) You will be given information on the lit and broken segments. (조명 및 깨진 세그먼트에 대한 정보가 제공됩니다.) You won't know whether the broken segment is lit or not. (깨진 세그먼트가 켜져 있는지..
Python Learn the basics Quiz 95 Q> It was Sheldon's version and his best number. (셀던의 버전과 최고의 번호였습니다.) But you have the coding skills to prove that there is a better number, or prove Sheldon sheldon right. (그러나 더 나은 숫자가 있다는 것을 증명할 수있는 코딩 기술을 가지고 있거나 Sheldon Sheldon이 맞다는 것을 증명할 수 있습니다.) You can return any number, but use the code to prove your number is the best! (번호를 반환 할 수 있지만 번호를 증명하는 코드를 사용하십시오!) This mission is pretty simp..
Python Learn the basics Quiz 94 Q> Nicola regularly inspects the local networks for security issues. (Nicola는 정기적으로 로컬 네트워크에서 보안 문제를 검사합니다.) He uses a smart and aggressive program which takes control of computers on the network. (그는 네트워크상의 컴퓨터를 제어하는 ​​똑똑하고 공격적인 프로그램을 사용합니다.) This program attacks all connected computers simultaneously, then uses the captured computers for further attacks. (이 프로그램은 연결된 모든 컴퓨터를 동시에 공격 한 다음 캡처 된 컴..