1
1

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 5 years have passed since last update.

言語処理100本ノック01

Posted at

#はじめに
言語処理100本ノック
から始めた言語処理! 今日は2個目
前回、言語処理100本ノックの元サイト自体をリンクしておくのを忘れていたのでしておきます
http://www.cl.ecei.tohoku.ac.jp/nlp100/#data

#01.[パタトクカシーー]
[パタトクカシーー]という文字列の1,3,5,7文字目を取り出して連結した文字列を得よ

01knock.py
st="パタトクカシー"

print(st[::2])

出力結果

パトカー

これは、01で学んだ内容なのでこれで終わります

##参考にしたサイト
https://qiita.com/segavvy/items/966c7b658ca740f6164b

1
1
2

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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?