Skip to content
Advertisement

Python string format

I have defined the string variable

JavaScript

I need to use this variable in another string like

JavaScript

I tried adding the rf option like this

JavaScript

But it’s printing only until c:/program, white spaces are neglected. Is there any way to use entire path in Bashcmd and can’t remove spaces in directory path because many system share same paths.

Advertisement

Answer

You can format strings like this:

JavaScript

or you can simply concatenate the string like this:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement