![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRkEaqwkMu7P485k9MHnqzmOqiyAYI5X3Ezirh7sd2mn2u3i4dXeCJAziPYjBb1pOIaa4-Z_FY_7bRLqp7ROgmIx90my6yX9jO_vjoHY2z4bIUNgMWhZU_eZz9jJlGjiFXaenS/s400/python-logo-master-v3-tm-flattened.png)
So here is the first blogpost about me learning Python from reading the book cover to cover. I will tag those posts with "Python cover to cover" so you can keep up. And please do remember, nothing is to basic to blog about because there is always someone who is not knowing what you write down.
First part, basic string printing. As for most languages Python has a function called print to write output to your screen. In our case it will write a string value to the screen, so if I want to print the text This is a test. to the screen in Python I will use print "This is a test." with the result as can seen below:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0OQPm3fPKu8LarVw0EH03HVm_vwhaYqj2AtQ3Ewb_eXFOed8l_3JrkCLgD6OoJI2cxpj1JmSyxYAUzZVWhof5vrvxhsOjne_JDwLoJYvkkot9EK7v-b3dpA05igYKtODWqHly/s400/python-test-1.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKrbqPANTatOipCgpmNkO8nYJAq89HwbJDRMz3V48E7IYhoYVs775aM-xDjurNC1uoGEfDa0KruUQ5_sE7C-eMlWmDWSgzHdZsH9ciHkCayxttPRx22fKNmJMhY8bSOq_gJbXa/s400/python-test-2.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN6eMv97lDC6Kb9b2lIvNswgxCOHc6wVK94Aa3erCh2Pdqfsks0TfmTQr2dwNb-phodu0EbTqI4rKWZs_Xil_3XTbYsY7rZCeJJGJp5pVf3aqnKxgnqO9I6CBU4SCRWV2MMs-L/s400/python-test-3.png)
No comments:
Post a Comment