![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(" \\\\(__)|") // 결과 \\ /\\ ) ( ') ( / ) \\(__)|
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F7pZI9%2Fbtr06WbhwQB%2Fk4fhuccfNQRjzCtf4XJlIK%2Fimg.png)
A = int(input()) # 첫번째 입력받은 문자 : 숫자로 변환 B = input() # 두번째 입력받은 문자 : 문자열 그대로 둠 # 문자열의 인덱스를 이용해서 두번째 입력 받은 문자를 하나씩 숫자로 반환하고 A와 곱한다. AxB2 = A * int(B[2]) AxB1 = A * int(B[1]) AxB0 = A * int(B[0]) AxB = A * int(B) print(AxB2, AxB1, AxB0, AxB, sep='\\n') # sep='\\n'로 줄바꿈