Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
第3回python勉強会~基礎編~
Search
iwanaga
June 05, 2021
Technology
490
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
第3回python勉強会~基礎編~
iwanaga
June 05, 2021
More Decks by iwanaga
See All by iwanaga
第2回ディープラーニング勉強会~画像処理編~
ganchan11
0
310
第1回ディープラーニング勉強会~画像処理編~
ganchan11
0
280
第0回ディープラーニング勉強会(演習問題、訂正)
ganchan11
0
450
第0回ディープラーニング勉強会~画像処理編~資料
ganchan11
1
800
第3回python勉強会(解答)
ganchan11
0
360
第2回python勉強会(解答編)
ganchan11
0
440
第2回python勉強会~基礎編~
ganchan11
0
620
第1回python勉強会~インストール編~
ganchan11
0
680
Other Decks in Technology
See All in Technology
OpenTelemetry eBPF Instrumentationの舞台裏 / Behind the Scenes of OpenTelemetry eBPF Instrumentation
ymotongpoo
4
1.3k
白金鉱業Meetup Vol.25 アウトカムが二値のデータに対するCausal Impact
brainpadpr
0
140
The Agent Builder Loop from Daily Work to OSS
minorun365
PRO
3
190
生成AIエージェントを用いた、 手動テスト手順書から自動テストへの 変換手法の検討
magicpod
0
150
今話題のAI「Jev」って何? 宇宙最速で学ぶ会
minorun365
PRO
10
4.9k
【技術的負債conf】事業成長に伴う技術的負債の説明責任とAIによるモニタリング、認知的負債について
i35_267
2
1.5k
Deploying a Full-Stack Bun-Native Framework on Cloudflare Workers
7nohe
0
160
作品が生態系になった ─ Mini Tokyo 3D から世界へ
nagix
0
190
[2026-09-11]SREは誰のもの?運用エンジニアが始める 「SRE領域への越境」とチームの進化の軌跡 〜Road to NEXT CRE
tosite
0
230
Geolonia の開発現場における AIの活用について
miya0001
0
100
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
3
500
アプリログインとWeb認証基盤をつなぐ ASWebAuthenticationSession 作法
shimastripe
1
310
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
37
7.4k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
690
Marketing to machines
jonoalderson
1
5.8k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
590
It's Worth the Effort
3n
188
29k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
240
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
560
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
The Limits of Empathy - UXLibs8
cassininazir
1
660
Being A Developer After 40
akosma
91
590k
The untapped power of vector embeddings
frankvandijk
2
1.9k
Transcript
第3回python勉強会 〜基礎編〜
⾃⼰紹介 • 岩永拓也 • 九州⼯業⼤学 情報⼯学部 4年 • 藤原研究室 アルゴリズム
• 趣味:ゲーム、読書、ボードゲーム • エディタ:Atom
復習 • 基本⽂法(print)
復習 • 基本⽂法(演算)
復習 • 基本⽂法(変数)
復習 • 基本⽂法(input)
復習 • 基本⽂法(if⽂)
復習 • 基本⽂法(for⽂)
復習 • 基本⽂法(while⽂)
復習問題 • FizzBuzz問題 1~15の間で 3で割り切れるときにFizz 5で割り切れるときにBuzz 15で割り切れるときにFizzBuzz と表⽰し、それ以外の数はそのまま表⽰しなさい
配列 • 変数は箱なら配列は箱の集まりみたいなもの • 注意→「0」からスタート • イメージ図1
配列 • 例
配列 • 追加⽅法→append関数を使⽤! • 例3
配列 • 2次元配列 • 1次元配列はイメージ図1のもの • 2次元配列はイメージ図2のようなもの • イメージ図2
配列 • 例4:2次元配列
関数 • 数学での関数 →2 つの変数 𝑥と 𝑦があり、 𝑦の値が 𝑥の値にともなって変化し𝑥の値を定める と𝑦の値がただ⼀つに決まる
例:𝑦 = 𝑥! + 𝑥 + 3 • プログラムでの関数 →さまざまな処理が機能として1つにまとまっているもの
関数 • 例 ハンバーガーショップ
関数 引数 返り値
format⽂ • ⽂字列内に変数を埋め込むことができる • ⽂字列内で動的に代わる変数を利⽤できる • 基本的な書き⽅
format⽂ • 例
辞書 • 特定の要素を検索したり、追加や削除も簡単にできるもの • 基本的な書き⽅
辞書 • 例 ⾊と果物の辞書
演習問題(基礎) • a=[0,12,-1,4,56,7,0.8,63,21,89]の配列の中で⼀番⼤きい値を出⼒する関数を作成 • a=[0,12,-1,4,56,7,0.8,63,21,89]の配列の中で⼀番⼩さい値を出⼒する関数を作成 ヒント→引数で配列を使⽤するとき定義した配列の名前を⼊れる。 例 配列:a=[0,1,2] 関数:function(a)
演習問題(応⽤) • 三⽬並べを作成 • 三⽬並べのルール →3✖ 3の盤⽤意し、⼆⼈が交互に「◦」と「 ✖ 」 を書き込んでき3つ並べるゲーム
演習問題解答(基礎)