True/False gate

#1

Hi all,
I want to append the string if the list is empty, if not output will append the list.
image

Is it wrong somewhere?
Thanks

0 Likes

#2

never mind, I resolve it!

0 Likes

#3

Posting the correct code would be the solution :wink:

0 Likes

#4

My guess would be that it was just an indentation problem, but you are still totally correct :slight_smile:

1 Like

#5

And an iteration perhaps? :slight_smile:

0 Likes

#6

Maybe… :slight_smile:
But given that we don’t have access to the inputs, it is hard to tell haha

0 Likes

#7

Haha, yeah thats true :slight_smile:.

I thought it was something like this he was after:

0 Likes

#8

It was definitely an identation problem. Lines 7,8 and 9 should have one tab less

1 Like