object python programs the output for these two modes of input can differ slightly for exampletyping variable name in the console causes its contents to be automatically printedwhereas in python program this must be done explicitly by calling the print function selecting (highlightingseveral program lines in spyder and then pressing function key is equivalent to executing these lines one by one in the console in pythondata is represented as an object or relation between objects (see also section basic data types are numeric types (including integersbooleansand floats)sequence types (including stringstuplesand lists)setsand mappings (currentlydictionaries are the only built-in mapping typestrings are sequences of charactersenclosed by single or double quotes we can print strings via the print function print (hello world !"hello world for pretty-printing outputpython strings can be formatted using the format function the bracket syntax {iprovides placeholder for the -th variable to be printedwith being the first index individual variables can be formatted separately and as desiredformatting syntax is discussed in more detail in section print ("name :{ height { mage { })format ( ,bilbo , )namebilbo height mage lists can contain different types of objectsand are created using square brackets as in the following examplex [ ,'string ',another string "quote type is not important [ 'string ''another string 'mutable elements in lists are indexed starting from and are mutable (can be changed) [ , [ note that the first index is [ , immutable in contrasttuples (with round bracketsare immutable (cannot be changedstrings are immutable as well ( , [ typeerror 'tuple object does not support item assignment slice lists can be accessed via the slice notation [start:endit is important to note that end is the index of the first element that will not be selectedand that the first element has index to gain familiarity with the slice notationexecute each of the following lines this may depend on the keyboard and operating system