LogIn E-mail
설계이야기
while sum
# 14 JMJS    19.11.11 10:07

s = 0
x = 1
while x <= 10:
        s = s + x
        print("x:",x," sum:",s)
        x = x + 1

게시물: 33 건, 현재: 1 / 1 쪽
[1]
번호 제       목 작성자 등록일 방문
34  sys.argv jinsung 22.4.1 39
33  args kwargs jinsung 22.4.1 40
32  set 집합 jinsung 22.3.24 39
31  getopt - 명열 줄 옵션용 c 스타일 구문 JMJS 22.4.1 72
30  tuple 은 수정 못함 jinsung 21.11.6 108
29  ocr cv2 py jinsung 21.9.17 146
28  PIL to numpy jinsung 21.9.15 140
27  pygame.display.flip vs pygame.display.update jinsung 21.9.6 173
26  house.py jinsung 21.3.18 290
25  move_circle_j1.py jinsung 21.3.18 238
24  bounce_j1.py jinsung 22.2.15 233
23  모두의 파이썬 - 20일만에배우는 프로그래밍 기초 JMJS 20.1.8 415
22  python -m pip install -U pip , matplotlib arcade ... jinsung 22.4.15 342
21  get =lambda i,m ... JMJS 19.11.13 340
20  2차원 리스트, 튜플 jinsung 21.11.6 358
19  [turtle]def polygon3(n,c,d) JMJS 19.11.11 337
18  [turtle]def polygon2(n,a) JMJS 19.11.11 333
17  def factorial(n) JMJS 19.11.11 302
16  def sum_func(n) JMJS 19.11.11 349
15  def hello() fun1(a) fun2(a,b) JMJS 19.11.11 332
14  while sum JMJS 19.11.11 294
13  random calculation JMJS 19.11.11 309
12  turtle random JMJS 19.11.11 313
11  import time time.time JMJS 19.11.11 314
10  turtle begin_fill end_fill JMJS 19.11.11 306
9  if else JMJS 19.11.11 298
8  input JMJS 19.11.11 310
7  list JMJS 19.11.11 321
6  turtle triangle JMJS 19.11.11 309
5  for range JMJS 19.11.11 304
4  모듈 사용하기 JMJS 19.11.11 312
3  import 파이썬 모듈 가져다 쓰기 JMJS 19.11.11 331
1  print 줄바꿈 JMJS 19.11.11 370
[1]