Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

f-string affected by quotation

$
0
0
alien_o = {"Colour" : "Green"}print(f"The colour is now {alien_o["Colour"]}.")

What's wrong with these lines of code? The closing bracket and the curly bracket is affected by the quotes, and I don't understand why.


Viewing all articles
Browse latest Browse all 23160

Trending Articles