LogIn E-mail
¼³°èÀ̾߱â
if else
# 9 JMJS    19.11.11 10:05

a = 3

if a == 2:
        print("A")

if a == 3:
        print("B")

if a == 4:
        print("C")
else:
        print("D")

x = input("12+23 = ")
a = int(x)

if a == 12+23:
        print("True")
else:
        print("False")

°Ô½Ã¹°: 24 °Ç, ÇöÀç: 1 / 1 ÂÊ
¹øÈ£ Á¦       ¸ñ ÀÛ¼ºÀÚ µî·ÏÀÏ ¹æ¹®
25  pg.mouse.get_pressed() pg.mouse.get_pos() JMJS 22.11.20 54
24  pg.MOUSEBUTTONDOWN event.button JMJS 22.11.20 52
23  ¸ðµÎÀÇ ÆÄÀ̽ã - 20Àϸ¸¿¡¹è¿ì´Â ÇÁ·Î±×·¡¹Ö ±âÃÊ JMJS 20.1.8 98
22  python -m pip install -U pip JMJS 19.11.25 114
21  get =lambda i,m ... JMJS 19.11.13 125
20  2Â÷¿ø ¸®½ºÆ®, Æ©Çà JMJS 19.11.13 113
19  [turtle]def polygon3(n,c,d) JMJS 19.11.11 119
18  [turtle]def polygon2(n,a) JMJS 19.11.11 119
17  def factorial(n) JMJS 19.11.11 116
16  def sum_func(n) JMJS 19.11.11 122
15  def hello() fun1(a) fun2(a,b) JMJS 19.11.11 120
14  while sum JMJS 19.11.11 117
13  random calculation JMJS 19.11.11 108
12  turtle random JMJS 19.11.11 110
11  import time time.time JMJS 19.11.11 109
10  turtle begin_fill end_fill JMJS 19.11.11 114
9  if else JMJS 19.11.11 113
8  input JMJS 19.11.11 112
7  list JMJS 19.11.11 117
6  turtle triangle JMJS 19.11.11 116
5  for range JMJS 19.11.11 110
4  ¸ðµâ »ç¿ëÇϱâ JMJS 19.11.11 114
3  import ÆÄÀ̽㠸ðµâ °¡Á®´Ù ¾²±â JMJS 19.11.11 121
1  print ÁÙ¹Ù²Þ JMJS 19.11.11 146
[1]