Suppose you have a following list: >>> list = ['Booboo', 10, 'Orestis', 5, 'Homer', 7, 'Asterix', 9] >>> list ['Booboo', 10, 'Orestis', 5, 'Homer', 7, 'Asterix', 9] Booboo has 10, Orestis has 5, Homer has 7 and last but not least Asterix has 9. Now, I want to concatenate each pair. eg Booboo 10 >>> list […]
Expressions The most common expressions in Python are numerical, string and boolean. All of them are considered as data items or d-item. For example, this is a numerical expression: 1 or another more complex math expression should be like this: 1/2+10-500*4 Apart from numerical expression, there are also string expressions: Hello world the same stands for concatenation strings, like: "H" + "e" […]
Sometimes, we want to add some extra space between two words, like pressing Tab key (which is identical up to 4x space-button length). In Python you have to make use of special characters in addition with a backslash (\). So for example: print("Hello \tWorld") Otherwise you can use concatenation using the + sign between strings, but this is not necessary. For example, […]
The print statement prints by default a newline character in Python. Look this example: [cc escaped=”true” lang=”python”] print(“Hello”) print(“world”) [/cc] The output is going to be in two separated lines: [cc escaped=”true” lang=”python”]Hello world[/cc] If you want to avoid this and use multiple print statements but print in the same line, you have to explicitly […]
Jim Zemlin, the Linux Foundation’s director, has some heartening news for Linux world professionals. He was recently quoted saying, “Linux’s increasing use across industries is building high demand for Linux jobs despite national unemployment stats. Linux.com reaches millions of Linux professionals from all over the world. By providing a Jobs Board feature on the popular […]
This is a widget panel. To remove this text, login to your WordPress admin panel and go to Appearance >> Widgets, and drag & drop a widget into this widget panel. If you want to leave this area blank, simply put a blank Text widget into this widget panel which will overwrite this text.