Daily Challenge #88

Hello guys. Today will be an easy challenge.
It will be a input procedure (function). There only one input. The input has to be a string and a boolean.
Your task is to make alternating Case.

What is this?

The alternating case converter will allow you to transform your text (no matter the current format) into text that alternates between lower case and upper case. It will generate a capital letter and then a lower case letter within the same word.

tHiS Is aN ExAmPlE Of aLtErNaTiNg cAsE.

Tasks

However, the task to today has to choose whether it is ignoring other symbol/spaces.

Input: I love koding in Kodular
If the input boolean is true, then //ignore spaces/other symbols
Output: i LoVe KoDiNg In KoDuLaR
else
Output: i lOvE KoDiNg iN KoDuLaR

Good luck!

1 Like

1 Like

Great! but I think you have inverted true and false. If true then it should ignore spaces

1 Like

Yeah, you’re right! :wink:

2 Likes

Here is my solution

Solution

It turns out that @stei2348 won!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.