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")

게시물: 25 건, 현재: 1 / 1 쪽
[1]
번호 제       목 작성자 등록일 방문
26  house.py jinsung 21.3.18 21
25  move_circle_j1.py jinsung 21.3.18 12
24  bounce_j1.py jinsung 21.3.18 8
23  모두의 파이썬 - 20일만에배우는 프로그래밍 기초 JMJS 20.1.8 175
22  python -m pip install -U pip JMJS 19.11.25 161
21  get =lambda i,m ... JMJS 19.11.13 173
20  2차원 리스트, 튜플 JMJS 19.11.13 168
19  [turtle]def polygon3(n,c,d) JMJS 19.11.11 156
18  [turtle]def polygon2(n,a) JMJS 19.11.11 160
17  def factorial(n) JMJS 19.11.11 151
16  def sum_func(n) JMJS 19.11.11 162
15  def hello() fun1(a) fun2(a,b) JMJS 19.11.11 170
14  while sum JMJS 19.11.11 144
13  random calculation JMJS 19.11.11 149
12  turtle random JMJS 19.11.11 151
11  import time time.time JMJS 19.11.11 164
10  turtle begin_fill end_fill JMJS 19.11.11 155
9  if else JMJS 19.11.11 153
8  input JMJS 19.11.11 159
7  list JMJS 19.11.11 176
6  turtle triangle JMJS 19.11.11 162
5  for range JMJS 19.11.11 143
4  모듈 사용하기 JMJS 19.11.11 166
3  import 파이썬 모듈 가져다 쓰기 JMJS 19.11.11 161
1  print 줄바꿈 JMJS 19.11.11 200
[1]