why there are no { } signs in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why there are no { } signs in python?

7th Oct 2018, 11:44 PM
raguraj sivanantham
4 Answers
+ 7
dict = {key: value} set = {v, a, l, u, e, s} fstring = f"this is {function()}" stringformat = "this is {0}".format(value) these are all i know🤔
8th Oct 2018, 2:43 AM
Flandre Scarlet
Flandre Scarlet - avatar
+ 5
Sets too :)
8th Oct 2018, 12:34 AM
Kirk Schafer
Kirk Schafer - avatar
+ 5
f strings, string literals
8th Oct 2018, 1:31 AM
Steven M
Steven M - avatar
+ 1
it is use for dictionaries,sets ,string formatting and in f string.
8th Oct 2018, 4:04 PM
Maninder $ingh
Maninder $ingh - avatar