0

I need to return a string as an output of a function, I use this:

return f"string {x}_{x.lower()}_{x.lower()}_path = { `STRINGMKR (`{x}),\".{x.lower()}_{x.lower()}\" } "

This character {}, can not be returned like a string as it also used for returning a value. Here { `STRINGMKR and at the end of the return statement } " . I tried to use backslash in front of it, since that is how quotes can be written, but it does not seem to work.

Any suggestions would be great, thank you.

This what I am expecting:

string TX_DIG_TX_DIG_path = {`STRINGMKR(`TX_DIG),".tx_dig_tx_dig"}  

I need {}, as a part of the return.

Cory Kramer
  • 114,268
  • 16
  • 167
  • 218

0 Answers0