Python : 제어구조 : If 의 사용
Python If 의 사용
Ref.] 위키독스's 왕초보를 위한 Python 2.7
https://wikidocs.net/56
Example : a와 b의 비교
Code :
Ref.] 위키독스's 왕초보를 위한 Python 2.7
https://wikidocs.net/56
Example : a와 b의 비교
Code :
>>> a = 3 + 5
>>> b = 4 + 4
>>> if a > b:
... print('a is bigger than b')
... elif a < b:
... print('a is smaller than b');
... else:
... print('a is equal to b');
...
a is equal to b