profile
Backend Developer ๐ŸŒฑ
post-thumbnail

[TIL][Repl.it]Python_28.๊ณผ์ œ

Repl.it ๊ณผ์ œ ๋‚ด์šฉ์ด๋‹ค! function๊ณผ function parameter, parameter ์ˆœ์„œ์— ๋Œ€ํ•ด์„œ๋Š” ์ด์ „ TIL์— ๋‚จ๊ฒจ๋†“๊ณ  ์ด๋ฒˆ ๊ธ€์—์„œ๋Š” ๊ณผ์ œ์— ๋Œ€ํ•ด์„œ๋งŒ ์ •๋ฆฌํ•˜๋ ค๊ณ  ํ•œ๋‹ค. 1. > ํ•จ์ˆ˜๋ฅผ ์ •์˜ ํ• ๋•Œ default value parameter๋ฅผ no

2020๋…„ 9์›” 19์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL][Repl.it]Python_25.Nested If Statements

๊ฑฐ์˜ ํ•˜๋ฃจ๋ฅผ ๋ชฝ๋•… ๋‚ ๋ฆฐ ๊ฒƒ ๊ฐ™์€ Repl.it 25๋ฒˆ ๋ฌธ์ œ๋‹ค...(๊ณตํ†ต ์„ธ์…˜๋„ ์žˆ๊ณ , ์ด๊ฒƒ ์ €๊ฒƒ ์žˆ๊ธฐ๋Š” ํ–ˆ์ง€๋งŒ)if๋ฌธ์„ ์งœ๋‹ค๊ฐ€ ๋ฐ˜๋ณต๋˜๋Š” ๊ตฌ๋ฌธ์ด ์žˆ์œผ๋ฉด ์ค‘์ฒฉ๋ฌธ์„ ์‚ฌ์šฉํ•ด์„œ ์ฝ”๋“œ์˜ ๊ฐ€๋…์„ฑ์„ ๋†’์ผ ์ˆ˜ ์žˆ๋‹ค. ๊ณ„์† ๋ฐ˜๋ณต๋˜๋Š” status == "ํ•™์ƒ"์„ if๋ฌธ ์•ˆ์— ๋„ฃ๊ณ  ๋˜ ๋‹ค์‹œ

2020๋…„ 9์›” 19์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL][Repl.it]Python_24.Testing

Repl.it 24๋ฒˆ ๋ฌธ์ œ๋‹ค...if๋ฌธ์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฌธ์ œ.ํ’€๊ธด ํ’€์—ˆ๋Š”๋ฐ ๋ฉ˜ํ† ๋‹˜์ด ์“ฐ์‹  model solution์„ ๋ณด๊ณ  ํ•œ์ค„์”ฉ ๋˜ ๋ถ„ํ•ดํ•ด๋ดค๋‹ค. ์›”(month)์™€ ์ผ(day), ์ด 2๊ฐ€์ง€๋ฅผ input ๊ฐ’์œผ๋กœ ๋ฐ›์•˜์„๋•Œ, 2019๋…„์˜ ํ•ด๋‹น ์›”๊ณผ ์ผ์˜ ๋‹ค์Œ ๋‚ ์˜ ์›”๊ณผ ์ผ์„ ์ถœ๋ ฅ

2020๋…„ 9์›” 19์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€