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?

【基礎と数値型】Python演習100問パック勉強記録−1【python独学】

Posted at

はやたすさんのUdemyコースPython演習100問パックの間違えたところや復習箇所を自分用メモしていきます。コースはこちら
まずはセクション2と基本とセクション3の数値型のおさらい。

ディクショナリの作り方

list = {}
for n in range (1,31):
  if n % 3 ==0:
    key = f"{n//3}番目"
    list[key] = n

print(list)

1.初めに{}で空のファイルを作る
2.Keyを指定
3,list[key]=でバリューを指定

intの値を結束したいとき

number2 = int(number + number + number)
test = int(number) + number2

1.数値をくっつけたいときは()内で足せばできる
2.int同士の足し算の場合

マイナス記号反転

result = -result

単純にマイナスつければ良い

初めのセクションは割とやさしめでした!

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