SlideShare a Scribd company logo
1 of 16
4장 제어 Python 3 프로그래밍 2011.05.21 원종필
If 문 if <조건식1>: 	<구문1> elif <조건식2>: 	<구문2> else: 	<구문3> ,[object Object]
조건식이 참인 경우 : 이후의 구문이 수행
동일한 블록의 들여쓰기 정도는 항상 일치해야 한다,[object Object]
 False 인 경우
정수 계열의 0
실수 계열의 0.0
시퀀스 계열의 (), [], {}, 빈 문자열(“”)
아무것도 없음을 의미하는 None
 False이외의 값이 할당된 변수는 참으로 판별,[object Object]
 and(단축평가 사용)와 &
 or(단축평가 사용) 와 |
좌변 피연산자가 우변 피연산자보다 먼저 단축평가 되는게 보장됨,[object Object]
반복문 도중 break로 인해 중간에 종료되지 않고 끝까지수행되었을때else 블록이 수행된다,[object Object]
 문자열, 리스트, 튜플, 사전, 이터레이터 객체..
반복문수행중break 없이 끝까지 수행되었을 때 else블록 수행,[object Object]

More Related Content

What's hot

[Effective Modern C++] Chapter1 - item1
[Effective Modern C++] Chapter1 - item1[Effective Modern C++] Chapter1 - item1
[Effective Modern C++] Chapter1 - item1지환 김
 
이펙티브 C++ (7~9)
이펙티브 C++ (7~9)이펙티브 C++ (7~9)
이펙티브 C++ (7~9)익성 조
 
이펙티브 C++ 스터디
이펙티브 C++ 스터디이펙티브 C++ 스터디
이펙티브 C++ 스터디quxn6
 
Secure coding-c-dcl-1
Secure coding-c-dcl-1Secure coding-c-dcl-1
Secure coding-c-dcl-1Seungyong Lee
 
Start IoT with JavaScript - 6.함수
Start IoT with JavaScript - 6.함수Start IoT with JavaScript - 6.함수
Start IoT with JavaScript - 6.함수Park Jonggun
 
[아꿈사] The C++ Programming Language 11장 연산자 오버로딩
[아꿈사] The C++ Programming Language 11장 연산자 오버로딩[아꿈사] The C++ Programming Language 11장 연산자 오버로딩
[아꿈사] The C++ Programming Language 11장 연산자 오버로딩해강
 
[2011 04 30]python-3장
[2011 04 30]python-3장[2011 04 30]python-3장
[2011 04 30]python-3장Jong Pil Won
 
이펙티브 C++ 공부
이펙티브 C++ 공부이펙티브 C++ 공부
이펙티브 C++ 공부quxn6
 
이펙티브 C++ 5,6 장 스터디
이펙티브 C++ 5,6 장 스터디이펙티브 C++ 5,6 장 스터디
이펙티브 C++ 5,6 장 스터디quxn6
 
The C++ Programming Language 5장 포인터, 배열, 구조체
The C++ Programming Language 5장 포인터, 배열, 구조체The C++ Programming Language 5장 포인터, 배열, 구조체
The C++ Programming Language 5장 포인터, 배열, 구조체해강
 
02 control statement
02 control statement02 control statement
02 control statementJu-Hyung Lee
 

What's hot (20)

[Effective Modern C++] Chapter1 - item1
[Effective Modern C++] Chapter1 - item1[Effective Modern C++] Chapter1 - item1
[Effective Modern C++] Chapter1 - item1
 
이펙티브 C++ (7~9)
이펙티브 C++ (7~9)이펙티브 C++ (7~9)
이펙티브 C++ (7~9)
 
이펙티브 C++ 스터디
이펙티브 C++ 스터디이펙티브 C++ 스터디
이펙티브 C++ 스터디
 
Secure coding-c-dcl-1
Secure coding-c-dcl-1Secure coding-c-dcl-1
Secure coding-c-dcl-1
 
Start IoT with JavaScript - 6.함수
Start IoT with JavaScript - 6.함수Start IoT with JavaScript - 6.함수
Start IoT with JavaScript - 6.함수
 
[아꿈사] The C++ Programming Language 11장 연산자 오버로딩
[아꿈사] The C++ Programming Language 11장 연산자 오버로딩[아꿈사] The C++ Programming Language 11장 연산자 오버로딩
[아꿈사] The C++ Programming Language 11장 연산자 오버로딩
 
STL study (skyLab)
STL study (skyLab)STL study (skyLab)
STL study (skyLab)
 
[2011 04 30]python-3장
[2011 04 30]python-3장[2011 04 30]python-3장
[2011 04 30]python-3장
 
이펙티브 C++ 공부
이펙티브 C++ 공부이펙티브 C++ 공부
이펙티브 C++ 공부
 
Haskell study 8
Haskell study 8Haskell study 8
Haskell study 8
 
C review
C  reviewC  review
C review
 
Scala syntax function
Scala syntax functionScala syntax function
Scala syntax function
 
이펙티브 C++ 5,6 장 스터디
이펙티브 C++ 5,6 장 스터디이펙티브 C++ 5,6 장 스터디
이펙티브 C++ 5,6 장 스터디
 
Java standard(8~13)
Java standard(8~13)Java standard(8~13)
Java standard(8~13)
 
3 4 1
3 4 13 4 1
3 4 1
 
The C++ Programming Language 5장 포인터, 배열, 구조체
The C++ Programming Language 5장 포인터, 배열, 구조체The C++ Programming Language 5장 포인터, 배열, 구조체
The C++ Programming Language 5장 포인터, 배열, 구조체
 
Modern effective cpp 항목1
Modern effective cpp 항목1Modern effective cpp 항목1
Modern effective cpp 항목1
 
Prototype
PrototypePrototype
Prototype
 
02 control statement
02 control statement02 control statement
02 control statement
 
3주차 스터디
3주차 스터디3주차 스터디
3주차 스터디
 

Viewers also liked

Garden a-woodward
Garden a-woodwardGarden a-woodward
Garden a-woodwardashcolt
 
Creative Commons และแนวคิดลิขสิทธิ์
Creative Commons และแนวคิดลิขสิทธิ์Creative Commons และแนวคิดลิขสิทธิ์
Creative Commons และแนวคิดลิขสิทธิ์Chongnang Wiputanupong
 
Especial richard 3
Especial richard 3Especial richard 3
Especial richard 3doli2100
 
Chapter 9 presentation
Chapter 9 presentationChapter 9 presentation
Chapter 9 presentationsheila77reyes
 
магнат аналитика - информационная брошюра
магнат аналитика - информационная брошюрамагнат аналитика - информационная брошюра
магнат аналитика - информационная брошюраSokirianskiy&Lazerson School
 
Resolucion 67 suspensiones
Resolucion 67 suspensionesResolucion 67 suspensiones
Resolucion 67 suspensionesUTTA OSPAT
 
Revista campana de largada
Revista campana de largadaRevista campana de largada
Revista campana de largadaUTTA OSPAT
 
Canbanvethietkevalaptrinhgame
CanbanvethietkevalaptrinhgameCanbanvethietkevalaptrinhgame
CanbanvethietkevalaptrinhgameGiang Nguyễn
 
1 laptrinhthietbididongvoij2me
1 laptrinhthietbididongvoij2me1 laptrinhthietbididongvoij2me
1 laptrinhthietbididongvoij2meGiang Nguyễn
 
предложение для It партнеров клуба magnat UCS
предложение для It партнеров клуба magnat UCSпредложение для It партнеров клуба magnat UCS
предложение для It партнеров клуба magnat UCSSokirianskiy&Lazerson School
 
200901011454290 高中職多元入學方案
200901011454290 高中職多元入學方案200901011454290 高中職多元入學方案
200901011454290 高中職多元入學方案Kuo-Yi Chen
 
Ready for Ten - a peer-to-peer parenting platform for Robinson's Fruit shoot
Ready for Ten - a peer-to-peer parenting platform for Robinson's Fruit shootReady for Ten - a peer-to-peer parenting platform for Robinson's Fruit shoot
Ready for Ten - a peer-to-peer parenting platform for Robinson's Fruit shootCharlotte Hillenbrand
 
15 bai actions trong photoshop
15 bai actions trong photoshop15 bai actions trong photoshop
15 bai actions trong photoshopGiang Nguyễn
 
Orden de carreras y de mandiles reunión nº2 15 05-16
Orden de carreras y de mandiles reunión nº2 15 05-16Orden de carreras y de mandiles reunión nº2 15 05-16
Orden de carreras y de mandiles reunión nº2 15 05-16UTTA OSPAT
 

Viewers also liked (20)

Aprianti
ApriantiAprianti
Aprianti
 
Garden a-woodward
Garden a-woodwardGarden a-woodward
Garden a-woodward
 
Creative Commons และแนวคิดลิขสิทธิ์
Creative Commons และแนวคิดลิขสิทธิ์Creative Commons และแนวคิดลิขสิทธิ์
Creative Commons และแนวคิดลิขสิทธิ์
 
Especial richard 3
Especial richard 3Especial richard 3
Especial richard 3
 
Zikru
ZikruZikru
Zikru
 
Chapter 9 presentation
Chapter 9 presentationChapter 9 presentation
Chapter 9 presentation
 
Thankful m mo2
Thankful m mo2Thankful m mo2
Thankful m mo2
 
магнат аналитика - информационная брошюра
магнат аналитика - информационная брошюрамагнат аналитика - информационная брошюра
магнат аналитика - информационная брошюра
 
Os php-7oohabits
Os php-7oohabitsOs php-7oohabits
Os php-7oohabits
 
Resolucion 67 suspensiones
Resolucion 67 suspensionesResolucion 67 suspensiones
Resolucion 67 suspensiones
 
Revista campana de largada
Revista campana de largadaRevista campana de largada
Revista campana de largada
 
Canbanvethietkevalaptrinhgame
CanbanvethietkevalaptrinhgameCanbanvethietkevalaptrinhgame
Canbanvethietkevalaptrinhgame
 
Pendidikankarakter hj srisuryantinis_pd_9275
Pendidikankarakter hj srisuryantinis_pd_9275Pendidikankarakter hj srisuryantinis_pd_9275
Pendidikankarakter hj srisuryantinis_pd_9275
 
1 laptrinhthietbididongvoij2me
1 laptrinhthietbididongvoij2me1 laptrinhthietbididongvoij2me
1 laptrinhthietbididongvoij2me
 
предложение для It партнеров клуба magnat UCS
предложение для It партнеров клуба magnat UCSпредложение для It партнеров клуба magnat UCS
предложение для It партнеров клуба magnat UCS
 
200901011454290 高中職多元入學方案
200901011454290 高中職多元入學方案200901011454290 高中職多元入學方案
200901011454290 高中職多元入學方案
 
Ready for Ten - a peer-to-peer parenting platform for Robinson's Fruit shoot
Ready for Ten - a peer-to-peer parenting platform for Robinson's Fruit shootReady for Ten - a peer-to-peer parenting platform for Robinson's Fruit shoot
Ready for Ten - a peer-to-peer parenting platform for Robinson's Fruit shoot
 
49 fernanda - olho vivo
49   fernanda - olho vivo49   fernanda - olho vivo
49 fernanda - olho vivo
 
15 bai actions trong photoshop
15 bai actions trong photoshop15 bai actions trong photoshop
15 bai actions trong photoshop
 
Orden de carreras y de mandiles reunión nº2 15 05-16
Orden de carreras y de mandiles reunión nº2 15 05-16Orden de carreras y de mandiles reunión nº2 15 05-16
Orden de carreras y de mandiles reunión nº2 15 05-16
 

Similar to [2011 05 21] 4장 제어

Swift3 generic
Swift3 genericSwift3 generic
Swift3 genericEunjoo Im
 
파이썬정리 20160130
파이썬정리 20160130파이썬정리 20160130
파이썬정리 20160130Yong Joon Moon
 
Python 이해하기 20160815
Python 이해하기 20160815Python 이해하기 20160815
Python 이해하기 20160815Yong Joon Moon
 
Linq to object using c#
Linq to object using c#Linq to object using c#
Linq to object using c#병걸 윤
 
Collection framework
Collection frameworkCollection framework
Collection frameworkssuser34b989
 
파이썬 기초
파이썬 기초 파이썬 기초
파이썬 기초 Yong Joon Moon
 
C++11 Tuple
C++11 TupleC++11 Tuple
C++11 Tuplequxn6
 
[Algorithm] Selection Sort
[Algorithm] Selection Sort[Algorithm] Selection Sort
[Algorithm] Selection SortBill Kim
 
C수업자료
C수업자료C수업자료
C수업자료koominsu
 
C수업자료
C수업자료C수업자료
C수업자료koominsu
 
R 프로그래밍 기본 문법
R 프로그래밍 기본 문법R 프로그래밍 기본 문법
R 프로그래밍 기본 문법Terry Cho
 
[D2 COMMUNITY] ECMAScript 2015 S67 seminar - 1. primitive
[D2 COMMUNITY] ECMAScript 2015 S67 seminar - 1. primitive[D2 COMMUNITY] ECMAScript 2015 S67 seminar - 1. primitive
[D2 COMMUNITY] ECMAScript 2015 S67 seminar - 1. primitiveNAVER D2
 
자바 테스트 자동화
자바 테스트 자동화자바 테스트 자동화
자바 테스트 자동화Sungchul Park
 
Java advancd ed10
Java advancd ed10Java advancd ed10
Java advancd ed10hungrok
 
Java mentoring of samsung scsc 0
Java mentoring of samsung scsc   0Java mentoring of samsung scsc   0
Java mentoring of samsung scsc 0도현 김
 
[Swift] Functions
[Swift] Functions[Swift] Functions
[Swift] FunctionsBill Kim
 

Similar to [2011 05 21] 4장 제어 (20)

Swift3 generic
Swift3 genericSwift3 generic
Swift3 generic
 
파이썬정리 20160130
파이썬정리 20160130파이썬정리 20160130
파이썬정리 20160130
 
Python 이해하기 20160815
Python 이해하기 20160815Python 이해하기 20160815
Python 이해하기 20160815
 
Linq to object using c#
Linq to object using c#Linq to object using c#
Linq to object using c#
 
Collection framework
Collection frameworkCollection framework
Collection framework
 
파이썬 기초
파이썬 기초 파이썬 기초
파이썬 기초
 
C++11 Tuple
C++11 TupleC++11 Tuple
C++11 Tuple
 
Java stream v0.1
Java stream v0.1Java stream v0.1
Java stream v0.1
 
Java stream v0.1
Java stream v0.1Java stream v0.1
Java stream v0.1
 
강의자료3
강의자료3강의자료3
강의자료3
 
Light Tutorial Python
Light Tutorial PythonLight Tutorial Python
Light Tutorial Python
 
[Algorithm] Selection Sort
[Algorithm] Selection Sort[Algorithm] Selection Sort
[Algorithm] Selection Sort
 
C수업자료
C수업자료C수업자료
C수업자료
 
C수업자료
C수업자료C수업자료
C수업자료
 
R 프로그래밍 기본 문법
R 프로그래밍 기본 문법R 프로그래밍 기본 문법
R 프로그래밍 기본 문법
 
[D2 COMMUNITY] ECMAScript 2015 S67 seminar - 1. primitive
[D2 COMMUNITY] ECMAScript 2015 S67 seminar - 1. primitive[D2 COMMUNITY] ECMAScript 2015 S67 seminar - 1. primitive
[D2 COMMUNITY] ECMAScript 2015 S67 seminar - 1. primitive
 
자바 테스트 자동화
자바 테스트 자동화자바 테스트 자동화
자바 테스트 자동화
 
Java advancd ed10
Java advancd ed10Java advancd ed10
Java advancd ed10
 
Java mentoring of samsung scsc 0
Java mentoring of samsung scsc   0Java mentoring of samsung scsc   0
Java mentoring of samsung scsc 0
 
[Swift] Functions
[Swift] Functions[Swift] Functions
[Swift] Functions
 

More from Jong Pil Won

[2012 11 12]애자일 회고
[2012 11 12]애자일 회고[2012 11 12]애자일 회고
[2012 11 12]애자일 회고Jong Pil Won
 
[2012 03 17]clean_code 14장 점진적개선
[2012 03 17]clean_code 14장 점진적개선[2012 03 17]clean_code 14장 점진적개선
[2012 03 17]clean_code 14장 점진적개선Jong Pil Won
 
파이썬3프로그래밍 2장 2003
파이썬3프로그래밍 2장 2003파이썬3프로그래밍 2장 2003
파이썬3프로그래밍 2장 2003Jong Pil Won
 
[2012 02 03]clean_code 5장
[2012 02 03]clean_code 5장[2012 02 03]clean_code 5장
[2012 02 03]clean_code 5장Jong Pil Won
 
[2012 02 03]clean_code 4장
[2012 02 03]clean_code 4장[2012 02 03]clean_code 4장
[2012 02 03]clean_code 4장Jong Pil Won
 
[2012 01 28]cleancode 3장
[2012 01 28]cleancode 3장[2012 01 28]cleancode 3장
[2012 01 28]cleancode 3장Jong Pil Won
 
[2012 01 28]cleancode 1장
[2012 01 28]cleancode 1장[2012 01 28]cleancode 1장
[2012 01 28]cleancode 1장Jong Pil Won
 
[2011 05 21] 4장 제어
[2011 05 21] 4장 제어[2011 05 21] 4장 제어
[2011 05 21] 4장 제어Jong Pil Won
 
Tdd 실습&나머지
Tdd 실습&나머지Tdd 실습&나머지
Tdd 실습&나머지Jong Pil Won
 
[2011 04 11]mock_object 소개
[2011 04 11]mock_object 소개[2011 04 11]mock_object 소개
[2011 04 11]mock_object 소개Jong Pil Won
 
10장 동기부여와훈련 경험
10장 동기부여와훈련 경험10장 동기부여와훈련 경험
10장 동기부여와훈련 경험Jong Pil Won
 

More from Jong Pil Won (13)

[2012 11 12]애자일 회고
[2012 11 12]애자일 회고[2012 11 12]애자일 회고
[2012 11 12]애자일 회고
 
[2012 03 17]clean_code 14장 점진적개선
[2012 03 17]clean_code 14장 점진적개선[2012 03 17]clean_code 14장 점진적개선
[2012 03 17]clean_code 14장 점진적개선
 
파이썬3프로그래밍 2장 2003
파이썬3프로그래밍 2장 2003파이썬3프로그래밍 2장 2003
파이썬3프로그래밍 2장 2003
 
[2012 02 03]clean_code 5장
[2012 02 03]clean_code 5장[2012 02 03]clean_code 5장
[2012 02 03]clean_code 5장
 
[2012 02 03]clean_code 4장
[2012 02 03]clean_code 4장[2012 02 03]clean_code 4장
[2012 02 03]clean_code 4장
 
[2012 01 28]cleancode 3장
[2012 01 28]cleancode 3장[2012 01 28]cleancode 3장
[2012 01 28]cleancode 3장
 
[2012 01 28]cleancode 1장
[2012 01 28]cleancode 1장[2012 01 28]cleancode 1장
[2012 01 28]cleancode 1장
 
[2011 05 21] 4장 제어
[2011 05 21] 4장 제어[2011 05 21] 4장 제어
[2011 05 21] 4장 제어
 
Tdd 마무리
Tdd 마무리Tdd 마무리
Tdd 마무리
 
Tdd 실습&나머지
Tdd 실습&나머지Tdd 실습&나머지
Tdd 실습&나머지
 
[2011 04 11]mock_object 소개
[2011 04 11]mock_object 소개[2011 04 11]mock_object 소개
[2011 04 11]mock_object 소개
 
Tdd 4장
Tdd 4장Tdd 4장
Tdd 4장
 
10장 동기부여와훈련 경험
10장 동기부여와훈련 경험10장 동기부여와훈련 경험
10장 동기부여와훈련 경험
 

[2011 05 21] 4장 제어