Python Data Types
The next chunk of information I want to understand is Python Data Types and the differences between things like sequence types i.e lists, tuples and range. I am getting different outputs based on the type of bracket I use so lists require square brackets, tuples require no brackets and range it seems while a sequence type is also a function and according to my notes is used in loops a lot. I’m not exactly clear when and why I would use range so I’ll start with the first two. I put the following code in;
which returned
but how do I get the list to print without the square brackets?