ubuntu or greater ubuntu version does not come with python by defaultbut it is in the universe repository you can install it with the following commands in the terminal applicationsudo apt-get update sudo apt-get install python idle-python python -pip note that because the universe repository is usually behind the python release scheduleyou may not get the latest version of python howeverany version of python will work for this book ubuntu and lower for ubuntu versions and lowerpython is not in the universe repository you need to get it from personal package archive (ppato install python from the deadsnakes pparun the following commands in the terminal applicationsudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python idle-python python -pip you can check that the correct version of python was installed by running python --version if you see version number less than then you may need to type python --version now you can open idle and get ready to write your first python program open idle you can open idle from the command line by typing the followingidle-python