0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

言語処理100本ノック解いてみた(0~3)

Last updated at Posted at 2022-06-21

お腹すいた

今日からずっと書きます。フィードバックよろしく。
言語処理100本ノック : https://nlp100.github.io/ko/ch01.html
ど偉い俺様のギット:https://dongkeuny50.github.io/
初作成:2022/06/21

問1

print("stressed"[::-1])
desserts

説明するまでもない。

問2

"".join(["schooled"[i* 2 + 1]for i in range(4)])
cold

同じく。競プロやってたらすぐです。これも一文でできなかったら今すぐ競プロやれ。

問3

"".join(["shoe"[_] + "cold"[_] for _ in range(4) ])
schooled

問4

print([len(_)for _ in "Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.".replace(".","").replace(",","").split()])
[3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9]

簡単簡単、認識違いはあったけどなおしました。

0
0
6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?