인터넷 기본 by 송성현
[WakaTime]Week 5 of March(20.03.30 ~ 20.04.05) by 안기웅 about Python
- Coding : 11hrs 32mins
- IDEL : VS Code
- Language : Python / PHP
Multiply (Intro) by 안기웅
- When you start solving the initial code is always consists of an “empty” function (which you need to fill in as the
- CheckiO also uses several additional tests in order to check your solution when you click the “Check” button ()
- I’d recommend to go through the solutions of other players before publishing your own
Easy Unpack by 안기웅
- Your mission here is to create a function that gets a tuple and returns a tuple with 3 elements - the first
- def easy_unpack(elements: tuple) -> tuple: """ returns a tuple with 3 elements - first
- third and second to the last """ # your code here return () if __name__ == '__main__': print('Examples:') print(easy_unpack((1
First Word (simplified) by 안기웅
- You are given a string where you have to find its first word
- def first_word(text: str) -> str: """ returns the first word in a given text
- """ # your code here return text[0:2] if __name__ == '__main__': print("Example:") print(first_word("Hello world")) # These "asserts" are used for self-checking and not for an auto-testing assert first_word("Hello world") == "Hello" assert first_word("a word") == "a" assert first_word("hi") == "hi" print("Coding complete