Does Python have an immutable list?

Yes. It’s called a tuple. So, instead of [1,2] which is a list and which can be mutated, (1,2) is a tuple and cannot. Further Information: A one-element tuple cannot be instantiated by writing (1), instead, you need to write (1,). This is because the interpreter has various other uses for parentheses. You can also do away with parentheses altogether: 1,2 is the same as (1,2) Note that a tuple is … Read more

aking a flex item float right

You can’t use float inside flex container and the reason is that float property does not apply to flex-level boxes as you can see here Fiddle. So if you want to position child element to right of parent element you can use margin-left: auto but now child element will also push other div to the right as you can see here Fiddle. What you can do now is change order of elements and … Read more

How to store data in the flash memory of a Arduino Uno (ATmega328p)

From the ATmega328P datasheet, “Boot Loader Support” section, “Application and Boot Loader Flash Sections” subsection, “Application Section” subsubsection: … the SPM instruction is disabled when executed from the Application section. Therefore there is no way to write to flash from the running program. Use an external memory device if you need to store more data … Read more