cannot convert to string, the value is HELLO WORLD.
fnto_uppercase(text:str) -> str{return text.to_uppercase();}fnremove_spaces(text:str) -> str{return text.replace(" ","");}fncount_chars(text:str) -> int{returnlen(text);}let result = "Hello World" |> to_uppercase // "HELLO WORLD"
|> remove_spaces // "HELLOWORLD"
|> count_chars;// 10print(result);// 10However, this works:
let result = "Hello World" |> remove_spaces // "HELLOWORLD"
|> to_uppercase // "HELLO WORLD"
|> count_chars;// 10
cannot convert to string, the value is HELLO WORLD.
However, this works: