본문 바로가기

Python_Matter/Solve

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.

내 사무실 (암스테르담에서 정부가 운영하는 연구실)은 폐쇄 될 것이지만, 나는 집에있는 컴퓨터를 가지고 있었고, 내 손에는별로 없었다.)

I decided to write an interpreter for the new scripting language I had been thinking about lately: a descendant of ABC that would appeal to Unix/C hackers.

(자는 새로운 스크립팅 언어에 대한 통역사를 작성하기로 결정했습니다. 나는 최근에 Unix / C 해커에게 어필 할 ABC의 자손에 대해 생각 해왔다.)

I chose Python as a working title for the project, being in a slightly irreverent mood (and a big fan of Monty Python's Flying Circus).

(필자는 프로젝트의 작업 제목으로 Python을 선택했습니다. 약간 불투명 한 분위기였습니다 (그리고 Monty Python의 Flying Circus 팬).)

Today, I can safely say that Python has changed my life. I have moved to a different continent.

(오늘날 파이썬이 제 삶을 바꿔 놓았다고 저는 안전하게 말할 수 있습니다.)

I spend my working days developing large systems in Python, when I'm not hacking on Python or answering Python-related email.

(나는 다른 대륙으로 이사 왔어. 파이썬 관련 이메일 Python 관련 해킹이나 파이썬 관련 해킹을하지 않을 때, 파이썬에서 커다란 시스템을 다루고있다.)

There are Python T-shirts, workshops, mailing lists, a newsgroup, and now a book.

(파이썬 티셔츠, 워크샵, 메일 링리스트, 뉴스 그룹, 그리고 이제는 책이 있습니다.)

Frankly, my only unfulfilled wish is to have my picture on the front page of the New York Times.

(솔직하게, 나의 유일한 미완성 인 소원은 뉴욕 타임즈의 1면에 내 사진입니다.)

-- Guido van Rossum, Foreword for "Programming Python", Reston, VA, May 1996

(Guido van Rossum, 1996 년 5 월 버지니아 주 레 스턴 (Reston)의 "Programming Python"에 대한 머리말)

 

This mission is simple to solve.

(이 임무는 간단하게 해결할 수 있습니다.)

You are given a function called "i_love_python" which will only return the phrase - "I love Python!"

("i_love_python"이라는 함수가 주어집니다. "i_ Python을 좋아합니다!"라는 문구 만 반환합니다)

Let's write an essay in python code which will explain why you love python (if you don't love it, when we will make an additional mission special for the haters).

(파이썬 코드에 에세이를 써 봅시다. 왜 파이썬을 좋아 하는지를 설명 할 것입니다 (당신이 그것을 좋아하지 않는다면, 우리가 싫어하는 사람들을위한 특별한 선교사를 만들 때).)

Publishing the default solution will only earn you 0 points as the goal is to earn points through votes for your code essay.

(기본 솔루션을 게시하면 코드 에세이를 통해 점수를 얻는 것이 목표이므로 0 점 만 얻게됩니다)

 

Input: Nothing.

 

Output: The string "I love Python!".

 

Example:

i_love_python() == "I love Python!"

 

How it is used: This mission revolves around code literacy.

                     (이 임무는 코드 해독을 중심으로 이루어집니다.)

 

A>

def i_love_python():
    """
Python is not an easy and easy language.
It simply goes to the pun.
But it is true that it is easier to learn than other languages.
I think language is the language that changes with effort.
I just need to think more about why I have to learn.
    """
    return ' '.join(['I', 'love', 'Python!'])

if __name__ == '__main__':
    #These "asserts" using only for self-checking and not necessary for auto-testing
    assert i_love_python() == "I love Python!"

 

O>


Process finished with exit code 0

 

S>

https://py.checkio.org/

반응형

'Python_Matter > Solve' 카테고리의 다른 글

Python Learn the basics Quiz 66  (0) 2019.06.14
Python Learn the basics Quiz 65  (0) 2019.06.14
Python Learn the basics Quiz 63  (0) 2019.06.14
Python Learn the basics Quiz 62  (0) 2019.06.14
Python Learn the basics Quiz 61  (0) 2019.06.12