본문 바로가기

Python_Matter/Solve

(117)
magic 8 ball Game 코드 Q> magic 8 ball game 코드를 작성하시오. A> import random ans1 = "turquoise Summit" ans2 = "Account Wooden redundant" ans3 = "impactful" ans4 = "Plastic programming fuchsia" ans5 = "compelling" ans6 = "tan invoice Curve" ans7 = "Guilder" ans8 = "Developer" name = input("What you'r name\n") print("{0}! Hello, MyMagic8Ball Game!\n".format(name)) question = input("For advice, just type in a question and hit..
1 ~ 100 까지 세는 코드 Q> 1 ~ 100 까지 세는 코드를 작성하시오. A> number = 1 while number != 101: # number < 101 print(number) number = number + 1
구구단 5단 출력 코드 Q> 구구단 5단을 출력하는 while 문을 작성하시오. A> number = 0 while number < 9: number += 1 print("{0} x 5 = {1}".format(number, number * 5))
2 ~ 20 까지 세는 코드 Q> while 문을 사용하여 2 ~ 20 까지 세는 코드를 작성하시오. A> number = 0 while number < 20: number += 2 print(number)
Python Learn the basics Quiz 113 Q> Sometimes humans build weird things. (때로는 인간이 이상한 것을 만들어내는 경우가 있습니다.) Our Robots have discovered and wish to use an ancient circular cannon loading system. (우리의 로봇은 고대의 원형 캐논 로딩 시스템을 발견하고 사용하기를 원했습니다.) This system looks like numbered pipes arranged in a circular manner. (이 시스템은 순환 방식으로 배열 된 번호가 매겨진 파이프처럼 보입니다.) There is a rotating mechanism behind these pipes, and the cannons are attached to ..
Python Learn the basics Quiz 112 Q> For the Robots the decimal format is inconvenient. (로봇의 경우 10 진수 형식은 불편합니다.) If they need to count to "1", their computer brains want to count it in the binary representation of that number. ("1"로 계산해야하는 경우, 컴퓨터의 두뇌는 해당 숫자의 이진 표현으로 계산하려고합니다.) You can read more about binary here. (여기서 바이너리에 대해 더 많이 읽을 수 있습니다.) You are given a number (a positive integer). (당신은 숫자 (양의 정수)를받습니다.) You should conve..
Python Learn the basics Quiz 111 Q> Computer date and time format consists only of numbers, for example: 21.05.2018 16:30 Humans prefer to see something like this: 21 May 2018 year, 16 hours 30 minutes Your task is simple - convert the input date and time from computer format into a "human" format. (컴퓨터 날짜 및 시간 형식은 숫자로만 구성됩니다 (예 : 21.05.2018 16:30). 인간은 다음과 같은 것을 선호합니다 : 2018 년 5 월 21 일, 16 시간 30 분 귀하의 작업은 간단합니다 - 입력 날짜와 시간을 컴퓨..
Python Learn the basics Quiz 110 Q> There are four substring missions that were born all in one day and you shouldn’t be needed more than one day to solve them. (여기에 하루에 모두 태어난 네 개의 하위 문자열 임무가 있으며이를 해결하기 위해 하루 이상을 필요로하지 않아야합니다.) All of those mission can be simply solved by brute force, but is it always the best way to go? (모든 임무는 짐승들에 의해 간단히 해결 될 수 있지만, 항상 최선의 방법입니까?) (you might not have access to all of those missions yet, but..