Python 测验 – 条件判断与循环
Python 测验
if None:
print(“Hello”)
for i in [1, 0]:
print(i+1)
i = sum = 0
while i <= 4:
sum += i
i = i+1
print(sum)
while 4 == 4:
print('4')
for char in 'PYTHON STRING':
if char == ' ':
break
print(char, end='')
if char == 'O':
continue
Python 测验