Night 30: Show the world
이미 Python 또는 의사 코드로 이날의 학습을 마쳤습니다. 두 언어 모두에서 완료한 것으로 인정됩니다. 원하면 다시 연습하세요.
이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
English
Tonight: show the world
- This is night 30! Finish it, and your pet becomes a star.
- Tonight you make a card to show what you and your pet can do.
Words for tonight
| Word | Meaning |
|---|---|
| share | show something to other people |
| card | a small, nice page with some facts |
| proud | happy about something good that you did |
English
Look how far you came
| Week | You learned |
|---|---|
| 1 | print, variables, input(), numbers, if, lists, for |
| 2 | while, random, functions, parameters, return |
| 3 | text tools, f-strings, dictionaries, sum, min, max |
| 4 | nested loops, 2D lists, a game loop, try, clean code |
| 5 | your own pet game |
English
One more tool: join
", ".join(items)puts,between the items of a list.
toys = ["ball", "kite", "box"]
print("Toys: " + ", ".join(toys))
print(" - ".join(toys))
English
A frame that fits
- The size of the frame comes from
len(name), so it fits every name.
name = "Lumi"
border = "*" * (len(name) + 4)
print(border)
print("* " + name + " *")
print(border)
English
What next?
- Go back to your hub: your pet's card is ready to save and share.
- Want more? The full Python Basics course goes deeper into every idea.
- Keep coding a little every day. Ten minutes a night is how you learned all this!
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Make your pet's star card. Read a name and a kind. Print 4 lines: *** 30 Code Nights ***, Name: Kit, Kind: fox, Nights: 30/30.
출력을 보려면 '실행'을 클릭하세요.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Show what you learned. Use ", ".join(skills) to print I can use: print, loops, if, functions.
출력을 보려면 '실행'을 클릭하세요.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Define certificate(name). It returns Kit finished 30 Code Nights! for Kit. Print it for your pet.
출력을 보려면 '실행'을 클릭하세요.
난이도 3/5 · 200코인 + 오늘 첫 완료 시 작은 보너스 추가
Put a name in a frame of stars. Read a name. The top and bottom lines have len(name) + 4 stars. The middle line is * Kit *.
출력을 보려면 '실행'을 클릭하세요.