Quantcast
Channel: Simplilearn Community
Viewing all articles
Browse latest Browse all 50081

i am trying this code num=1:5for(val in num){ i...

$
0
0
i am trying this code num=1:5
for(val in num){

if(num==3){
next
}

print(val)
}

and getting the following error

1: In if (num == 3) { :
the condition has length > 1 and only the first element will be used

kindly explain

Viewing all articles
Browse latest Browse all 50081

Trending Articles