Is putting the { next to the variable declaration required by syntax (for a dict variable) or is there a way to put it on the next line because if I do it like this I have to go through each item and check them until I find the item I want to change:
var = {thingy1: 1, thingy2: 2, thingy3: 3, thingy4: 4, thingy5: 5}
I would like to do it like this:
var =
{
thingy1: 1,
thingy2: 2
}
I have seen some people doing it like this but I just want to know if putting the { next to the variable declaration is required by syntax or not:
var = {
thingy1: 1,
thingy2: 2
}
(sorry if its a stupid question im a bad programmer and ive just started learning python lol)