Daily challenge #85

Good afternoon (or morning). Today I will make the daily challenge.
Task: make a procedure with three string input, to fill in the blanks of the sentence(s)
One word per blank ( _ ).

  1. sentence
  2. words
  3. order

Output: The sentence with blanks filled.

Example:

  • Sentence: “Hello my_. Nice to_you_.” (with _)
  • Words: “meet friends guys” (separate with space but the order is not ascending nor descending.)
  • Order: “2,1,3” (the order of the word in csv format)

Output:
“Hello my friends. Nice to meet you guys.” (a text string)

Good luck!

2 Likes

Will they be in a list?
Also, can there be any number of gaps/words ?

1 Like

Here, you would have later:

“Hello my friends .” Because you have the space after the underscore… can you just remove the space behind it?

1 Like

Btw, if you

I have a solution with 29 blocks.

1 Like

no.

My mistake :sweat_smile:

And why it is matter if i don’t remove the space? just curious.

Then my out put would be:

1 Like

So I can’t set the last input for the variable to list from csv row text 2,1,3 ?

1 Like

Ok ill remove it.

Thanks :sweat_smile:

1 Like

no, the input should be string, but you can make whatever you want in the procedure.

Ok. I’ll post my solution here now, but be aware! It’s completely untested since I have no Companion.
:unamused:

1 Like

Now my solution has 31 blocks :sweat_smile:

Please test it for me since I don’t know if it works.

Thanks. Gtg now, will come back later. Happy Koding!

1 Like

Before you go can you tell me what does x x2 and x3 means?

1 Like

Oh yes. sorry. I updated my Solution.

1 Like

It didn’t work, tips you should use replace list item instead of set item

1 Like

Oh yes… will work on it.

1 Like

Edited, Did it work now? Btw 35 blocks now.

1 Like

Yes but the output don’t have any space.
Like
Hellohowareyou

1 Like

It should be

Hellomyfriends.Nicetomeetyouguys if it was like you say…

but anyway, I will work on it…

1 Like

Are the words inserted however?

1 Like