spam = 'Spam' spam, ham = 'yum', 'YUM' [spam, ham] = ['yum', 'YUM'] spam = ham = 'lunch'
if <����1>: <��1> elif <����2>: # �ȗ��� <��2> else: # �ȗ��� <��3>
���̑��� pass �́C�u�Ȃɂ����Ȃ��v���Ƃ��Ďg����Dwhile <����1>: <��1> if <����2>: <��2> break # ���[�v���甲���� if <����3>: <��3> continue # ���[�v�̐擪�ֈڂ� <��4> else: # break �����s����Ȃ������Ƃ� <��5> # ��2�����s�����
for target in object: <��1> # while �Ɠ��l else: # break �����s����Ȃ������Ƃ�
�t�@�C������P�s���ǂݏo��.x = 1 s = 0 while x <= 10: s = s + x x = x + 1 print s �܂��� s = 0 for i in range(1,11): s = s + i print s
file = open('filename','r') while 1: line = file.readline() if not line: break print line, �܂��́C file = open('filename','r') for line in file.readlines(): print line,