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

Python勉強の記録_190811

Last updated at Posted at 2019-08-11

Python勉強の記録を(なるべく毎日)メモすることにしました。

#自己紹介
電機メーカーで新卒2年目、経営企画をしています。
同期がみんなエンジニアですごいので、自分も何かできるようになりたい!
と思い、Pythonを勉強することにしました。

#今日やったこと

#学び

  • a bみたいな入力に対してaとbを別の変数に入れたいときに、splitとmapを使って対処する
num = '2 5'
a, b = map(int, num.split())
print(a)
print(b)
#2
#5
  • 小さい方を取得するmin
a = 5
b = 10
c = min(a, b)
print(c)
#5
1
0
0

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