x=int(input("Enter a integer for x: "))
if x>10:
print("x is greater than 10")
else:
if x<10:
print("x is smaller than 10")
else:
print("x is 10")
if x<10:
print("x is smaller than 10")
else:
if x>10:
print("x is greater than 10")
else:
print("x is 10")
if x==10:
print("x is 10")
input()
.py 파일 돌리자 마자 바로 닫힌다. 문제점 지적좀
else if를 elif로 바꾸고 세번 묻지 말고 한번만 해라.
http://www.pydanny.com/why-doesnt-python-have-switch-case.html
이거 참고하고
ㄴ ㄳㄳ
이게 뭔 좆같은 언어래