분류 전체보기825 0130. Grasshopper - Personalized Message Create a function that gives a personalized greeting. This function takes two parameters: name and owner. Use conditionals to return the proper message: case name equals owner : 'Hello boss' otherwise : 'Hello guest' Solution: def greet(name: str, owner: str) -> str: return f"Hello {name == owner and 'boss' or 'guest'}" 2023. 1. 31. 2023년 4주차 '또봇(전 글똥이)이 공식 데뷔했다!' 메모어 11기 신청 명준님이 소개해준 주간회고 커뮤니티 '메모어'를 신청했다. 글또라는 개발자 커뮤니티에 참여하고 있음에도 메모어에 참여하는 이유는 두 가지다. 첫 번째는 내 시야를 개발에 한정 짓지 않기 위함이고 두 번째는 이미 1년여간 써왔기 때문에 주간회고가 어렵지 않기 때문이다. 개발자 외에 다른 사람들은 요즘 어떤 생각을 하면서 지내는지, 그리고 주간회고를 통해 어떻게 성장하는지 가까이서 지켜보고 싶다! 글또 운영진 모임 글또 8기 운영진이 한 자리에 모였다. (장소를 제공해 주신 원종 님께 감사를 🙏🏻) 그동안 조별로 논의했던 사항들을 다 같이 점검했다. 나의 경우 글 제출 자동화 봇인 또봇(글똥이에서 이름 변경)에 대해 소개했다. 다들 열정과 의욕이 남다르다는 게 느껴졌다. 재미있게도 '성장.. 2023. 1. 30. 0129. Super Duper Easy Make a function that returns the value multiplied by 50 and increased by 6. If the value entered is a string it should return "Error". Solution: problem = lambda x: "Error" if isinstance(x, str) else x * 50 + 6 2023. 1. 29. 0128. Gauß needs help! (Sums of a lot of numbers). Due to another of his misbehaved, the primary school's teacher of the young Gauß, Herr J.G. Büttner, to keep the bored and unruly young schoolboy Karl Friedrich Gauss busy for a good long time, while he teaching arithmetic to his mates, assigned him the problem of adding up all the whole numbers from 1 through a given number n. Your task is to help the young Carl Friedrich to solve this problem .. 2023. 1. 28. 0127. Remove the time You're re-designing a blog and the blog's posts have the following format for showing the date and time a post was made: Weekday Month Day, time e.g., Friday May 2, 7pm You're running out of screen real estate, and on some pages you want to display a shorter format, Weekday Month Day that omits the time. Write a function, shortenToDate, that takes the Website date/time in its original string for.. 2023. 1. 28. 0126. Over The Road Task You've just moved into a perfectly straight street with exactly n identical houses on either side of the road. Naturally, you would like to find out the house number of the people on the other side of the street. The street looks something like this: Street 1| |6 3| |4 5| |2 you Evens increase on the right; odds decrease on the left. House numbers start at 1 and increase without gaps. When .. 2023. 1. 27. 이전 1 ··· 25 26 27 28 29 30 31 ··· 138 다음