![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fber4Rk%2Fbtr1fORPHX8%2FAvqiaFvDD3JJEQg57KBXj0%2Fimg.png)
x = int(input()) y = int(input()) if x > 0 and y > 0: print('1') elif x 0 > y: print('4') // 결과 // 입력값 1 1 // 출력값 1 // 입력값 -1 -1 // 출력값 3
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb27agC%2Fbtr1bfWI81g%2FKkKkzASteibWvjP2kqdFn0%2Fimg.png)
1) 첫 번째 코드 year = int(input()) if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0): print(1) else: print(0) 2) 두 번째 코드 year = int(input()) print('1') if ((year % 4 == 0) and (year % 100 != 0)) or (year % 400 == 0) else print('0') 3) 결과 // 결과 // 입력값 2000 // 출력값 1 // 입력값 1999 // 출력값 0
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FwXo27%2Fbtr0JBUtBLJ%2FPKC4HIwjp6Gq314kbzhmsK%2Fimg.png)
score = int(input()) if score >= 90: print('A') elif score >= 80: print('B') elif score >= 70: print('C') elif score >= 60: print('D') else: print('F') // 결과 100 A 82 B 32 F
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdRqdvG%2Fbtr01T7cVgv%2FhkZNKbUzPxVdfR0caVJ6s0%2Fimg.png)
A, B = map(int, input().split()) if A > B: print(">") elif A < B: print("
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FVDmB9%2Fbtr0NN084vD%2FacDiKGKAipARpKqd20TJMk%2Fimg.png)
1) [오답] 내가 작성한 코드 print("|\\\\_/|") print("|q p| /}") print("( 0 )\\"\\"\\"\\\\") print("|\\"^\\"' |") print("||_/=\\\\\\\\__|") |\\_/| |q p| /} ( 0 )"""\\ |"^"' | ||_/=\\\\__| 2) [정답] 정답 코드 print("|\\_/|") print("|q p| /}") print('( 0 )"""\\\\') # \\'앞에 \\을 붙여준다. print('|"^"` |') print("||_/=\\\\\\__|") # \\\\ 앞에 \\을 하나 더 붙여준다. |\\_/| |q p| /} ( 0 )"""\\ |"^"` | ||_/=\\\\__| → 틀린 이유 ` 특수기호를 이용해..
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FTKODI%2Fbtr0NMHWl5L%2FSAcwgyAk0zJaMgT2mLebKk%2Fimg.png)
print("\\\\ /\\\\") print(" ) ( ')") print("( / )") print(" \\\\(__)|") // 결과 \\ /\\ ) ( ') ( / ) \\(__)|