Category: <span>Python</span>
For learning to do changes in, let’s begin by creating two dictionaries: >>> readbooks = {} # This is empty >>> sandwich = {‘Slices bread’: 4, ‘Lettuce leaves’: 1, ‘Slices…
Now two Python versions are being used: the 2.x and 3.x ones. $ python –version Python 2.7.6 $ python3 –version Python 3.4.0 Recommend: use the latest stable version. Here…
Comments are lines of code which do not run, and which are used for documenting (showing the programmer what a piece code does). This is useful: When we review our…
La instalación de Python trae consigo un intérprete de comandos, normalmente llamado terminal o consola de Python. Y puede que no se necesite más, pero hay uno mucho mejor: bpython.