#break:当满足条件时，直接跳出离它最近的一层循环
#continue：当满足条件时，跳出本次循环，然后会继续执行之后循环
num=1#初始条件
def breakLoop(num):
    """
    this method is to break a loop
    num:step value
    """
    sum=0
    while num<=4:#判断条件
        if num==3:
            num += 1
            break
        sum = sum+num

        num+=1#while的步进
    return sum
50ede97d787bc9f706d9316eed0db7dce6298c82
<mask token>

<mask token>


def breakLoop(num):
    """
    this method is to break a loop
    num:step value
    """
    sum = 0
    while num <= 4:
        if num == 3:
            num += 1
            break
        sum = sum + num
        num += 1
    return sum

num = 1


def breakLoop(num):
    """
    this method is to break a loop
    num:step value
    """
    sum = 0
    while num <= 4:
        if num == 3:
            num += 1
            break
        sum = sum + num
        num += 1
    return sum

#break:当满足条件时，直接跳出离它最近的一层循环
#continue：当满足条件时，跳出本次循环，然后会继续执行之后循环
num=1#初始条件
def breakLoop(num):
    """
    this method is to break a loop
    num:step value
    """
    sum=0
    while num<=4:#判断条件
        if num==3:
            num += 1
            break
        sum = sum+num

        num+=1#while的步进
    return sum