본문 바로가기

Python_Matter

(328)
Python Learn the basics Quiz 64 Q> Over six years ago, in December 1989, I was looking for a "hobby" programming project that would keep me occupied during the week around Christmas. (6 년 전인 1989 년 12 월, 저는 크리스마스 주변의 한 주 동안 계속 저를 지켜줄 "취미"프로그래밍 프로젝트를 찾고있었습니다.) My office (a government-run research lab in Amsterdam) would be closed, but I had a home computer, and not much else on my hands. 내 사무실 (암스테르담에서 정부가 운영하는 연구실)은 폐쇄 될 것이지만,..
Python Learn the basics Quiz 63 Q> Tic-Tac-Toe, sometimes also known as Xs and Os, is a game for two players (X and O) who take turns marking the spaces in a 3×3 grid. (Tic-Tac-Toe는 때로는 Xs와 Os라고도하며, 2 명의 플레이어 (X와 O)가 3 × 3 그리드에서 공백을 표시하는 게임입니다.) The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal rows (NW-SE and NE-SW) wins the game. (수평, 수직 또는 대각선 (NW-SE 및 NE-SW)에 3 개의 각 마크를 넣으면 성공..
Python Learn the basics Quiz 62 Q> Stephan has a friend who happens to be a little mechbird. (Stephan에는 작은 mechbird 인 우연히 친구가있다) Recently, he was trying to teach it how to speak basic language. (최근 그는 기본 언어를 말하는 법을 가르치려고 노력하고있었습니다.) Today the bird spoke its first word: "hieeelalaooo". (오늘 새는 그것의 첫번째 낱말을 말했다 : "hieeelalaooo".) This sounds a lot like "hello", but with too many vowels. (이것은 "hello"와 비슷하지만 모음이 너무 많습니다.) Stephan as..
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)는 (-..