in visual studio code, the line below \U and \P and \L are shown in a different color even though they have no effect in r strings why is that?
app = r'C:\Users\Sandramohan\AppData\Local\Programs\Python\Python38\python.exe'

It's a feature - apparently a lower 'r' is colored as regex, whereas a capital 'R' is colored as a rawstring.
Use a capital R to get correct coloring:
app = R"C:\Hello\World"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With