Anti_vowel: About the continuation character "\"


#1



def anti_vowel(a):
    b=''
    for n in range(0,len(a)):
        if a[n]=='a'or a[n]=='e' or a[n]=='i' or a[n]=='o' or a[n]=='u'or\            a[n]=='A' or a[n]=='E' or a[n]=='I' or a[n]=='O' or a[n]=='U':
            continue
        else:
            b=b+a[n]
    return b

console showed :SyntaxError: unexpected character after line continuation character

Can you explain this for me :sunny:


#2

\ is a line continue character, it means you break code into multiply lines:

if (True \
&& True)

if you use it, you will have to put the rest of the code to next line.