{"id":38,"date":"2021-04-30T15:27:35","date_gmt":"2021-04-30T14:27:35","guid":{"rendered":"https:\/\/thepythoncodingbook.com\/?page_id=38"},"modified":"2024-03-15T19:47:51","modified_gmt":"2024-03-15T19:47:51","slug":"1-introduction","status":"publish","type":"page","link":"https:\/\/thepythoncodingbook.com\/1-introduction\/","title":{"rendered":"0 | How To Learn To Code: Preface"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-text-color has-alpha-channel-opacity has-background aligncenter is-style-wide\" style=\"background-color:#6d227a;color:#6d227a\"\/>\n\n\n\n<div class=\"wp-block-jetpack-markdown\"><p>You\u2019ve decided to learn how to code. Maybe it\u2019s the first time you\u2019re trying, or perhaps you\u2019ve started once or twice in the past but never made it past a few lessons.<\/p>\n<p>Programming is not easy, and the \u2018getting started\u2019 hurdle is often the toughest one to overcome. This is because programming can be rather abstract. It requires a different mindset from our human way of thinking. You\u2019ll need to learn to <em>think like a computer<\/em>. This is the most critical part when learning to code.<\/p>\n<p><strong>My approach to teaching beginners is to remember at all times that even the most straightforward coding ideas are new concepts for beginners.<\/strong> Therefore I want to take the learner on a journey and accompany them along every step of that journey. Beginners following an introductory book may often find that even though the text is aimed at novices, the book overlooks some steps or covers them superficially. I want to make sure that the reader of this book understands every part of the process involved in coding. Concepts are introduced at the right time\u2014neither too early nor too late.<\/p>\n<p>The focus of this book is to make sure you understand this programming mindset as you learn about the topics you\u2019ll need to write computer code. Learning how to use the various tools is not enough. At times it\u2019s necessary to dig a bit deeper underneath the surface to get better acquainted with the concepts. I find that some well-placed analogies can also go a long way to help you understand why things happen the way they do.<\/p>\n<\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-horizontal is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-7d812b4c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-50 is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link has-text-color wp-element-button\" href=\"https:\/\/thepythoncodingbook.com\/1-getting-started-with-the-fundamentals-of-programming\/\" style=\"border-radius:3px;color:#6d227a\">Jump to Chapter 1<\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-jetpack-markdown\"><h2>Why Python?<\/h2>\n<p><strong>What matters is that you learn <em>Programming<\/em> and not a <em>Programming Language<\/em>.<\/strong> This distinction is a subtle but important one. Programming is the way of thinking that\u2019s required. It\u2019s the process of breaking down a problem into logical steps and then systemically putting them in the right order.<\/p>\n<p>To write code, you need a programming language. In this book, we are using Python to introduce you to the coding concepts. But all the general coding concepts are common across all programming languages, even if the methods and tools may vary.<\/p>\n<h4>Benefits Of Learning To Code in Python<\/h4>\n<p>Unless you have a particular reason to learn some other programming language, then Python is the best language to use. Here are some reasons for this:<\/p>\n<ul>\n<li>It is one of the <strong>most popular languages<\/strong> in use today. So you\u2019ll be learning a very useful language.<\/li>\n<li>It is a <strong>broad language<\/strong>, with applications across a wide range of uses, from science and finance to web development and many others along the way. Other languages can be more narrow in their scope and therefore only applicable within a small range of uses.<\/li>\n<li>It is a <strong>relatively easy language<\/strong> to learn and use. I cannot stress enough how important this point is when learning how to code. As a beginner and intermediate learner, your main focus is on learning the fundamental coding concepts and understanding them thoroughly. A language like Python allows you to focus on these key concepts and not on the subtleties and quirks of the language itself. In Python, it is possible to explain every single line of code, even at the very early stages of learning. This is not possible with many other languages. You\u2019ll have to accept the \u201cwrite this code and you\u2019ll understand it later\u201d concept when learning other programming languages that are not as friendly as Python is, and this is not ideal for beginners.<\/li>\n<li>There are <strong>excellent resources<\/strong> online and superb support from the Python community.<\/li>\n<\/ul>\n<h2>How To Use This Book To Learn To Code<\/h2>\n<p>If you\u2019re new to programming, my advice is to start from the beginning and work your way through every section in order. Do not jump across chapters. This book presents the material in an order carefully planned to make your journey to learn to code as smooth and efficient as possible.<\/p>\n<h4>The Fundamentals<\/h4>\n<p>There are two parts to this book. Chapters 1 to 5 cover the fundamentals of programming. These are topics you will need whatever you want to use coding for. There is no way of escaping these topics. You\u2019ll read about the <em>Climbing a Tree<\/em> analogy for learning how to code later on in the book\u2014these chapters are the main tree trunk! You have to climb the main trunk before you can start to climb the smaller branches.<\/p>\n<p>Chapter 1 will guide you from the very beginning. This chapter is centred around your first coding project. This project will introduce several of the key topics in programming and you\u2019ll get a good understanding of how a computer program is built, step by step. As you go through this chapter, we\u2019ll take a few short detours to introduce these topics.<\/p>\n<p>Chapters 2 to 4 will continue to build on the fundamentals of coding, and Chapter 5 focuses on dealing with errors and bugs when coding.<\/p>\n<h4>Quantitative Programming<\/h4>\n<p>Chapters 6 to 11 form the second part of this book. They deal with the tools needed for programming for quantitative applications, such as science, finance or other data-driven fields. If you\u2019re interested in these topics, then you\u2019ll find these chapters interesting and essential. But if your aims to learn to code are different, then you can ignore these chapters. You can always come back to them later.<\/p>\n<h4>Object-Oriented Programming and More Functions<\/h4>\n<p>There are two chapters in Part 2 that could also have fit in the first part. These are Chapters 6 and 7 which expand on functions and introduce Object-Oriented Programming. These are not must-know topics when you\u2019re getting started with coding. However, you\u2019ll soon find you\u2019ll need these as you work on more complex projects.<\/p>\n<p>Both of these topics, functions and Object-Oriented Programming, are important parts of modern computer programming. You\u2019ll need to know about Object-Oriented Programming as you move to more intermediate areas of coding.<\/p>\n<p>There is also a <em>bonus<\/em> chapter: The White Room. This is the name of an analogy I use throughout this book to help <strong>explain what\u2019s really happening inside a computer program<\/strong> which will help you understand how best to write computer programs too.<\/p>\n<h4>Working Through The Examples In The Book | Practise, Practise, Practise<\/h4>\n<p>All the coding concepts are presented through examples. Some are short programs, others are slightly longer projects.<\/p>\n<p>This book is not a novel. The only way to read this book (or any book that teaches coding) is to <strong>write the code and experiment with it as you go along<\/strong>. Yes, you can copy the code and run it, but you can also go off-piste and try things out, experiment, do things your own way. This is a very important part of the learning process with programming and it\u2019s the only way you\u2019ll build your confidence with coding. You can try to have a go at writing the code <em>before<\/em> you read the sections of the book that will go through the code.<\/p>\n<p>The more mistakes you make, the better it is!<\/p>\n<h2>Before You Start | Downloading Python And An IDE<\/h2>\n<p>If this is your first attempt to learn how to code, you\u2019ll need to set up your computer. You\u2019ll need to download the Python language and an editor with which to code.<\/p>\n<h4>Downloading And Installing Python<\/h4>\n<p>Getting the Python language is the easy part. Go to <a href=\"https:\/\/www.python.org\">python.org<\/a> and choose the \u2018Downloads\u2019 tab. You will see a button to download the latest version of Python for your operating system. You can download and install this on your computer. If you\u2019re presented with any options during installation, I would recommend you choose the default options for now.<\/p>\n<p>You now have Python installed on your computer. But how can you use it? This is the part where it can get confusing as there is too much choice available. There is no best option here. There are many options because it depends on preference and, in part, on what you want to use coding for.<\/p>\n<p>In the same way that you need a word processor to write in English (or any other language), you will need an editor to write in Python. Some of these are very basic text editors, requiring you to run your code via the command line. If you\u2019re new to programming, I would recommend avoiding this option.<\/p>\n<p>Instead, you\u2019re probably better off choosing a more <em>complete<\/em> editor. These editors are often called Integrated Development Environments, or IDEs for short.<\/p>\n<h4>Downloading And Installing PyCharm<\/h4>\n<p>If you\u2019ve done your research already and have a preferred one, then go ahead and use it. You can follow my recommendation if you don\u2019t yet have a preference and you\u2019d rather spend your time learning how to code instead of researching IDEs: Use PyCharm Community Edition. You can <a href=\"https:\/\/www.jetbrains.com\/pycharm\/download\/\">download PyCharm here<\/a>. Choose the free Community edition and not the Professional one. The Professional edition is not free, and you won\u2019t need any extra features it offers for the time being. Once again, the easiest option is to go along with default options during installation.<\/p>\n<h4>Opening Your First Python File<\/h4>\n<p>Once you\u2019ve installed PyCharm, you can create a <em>New Project<\/em> from the <em>File<\/em> menu. A <em>project<\/em> is a folder that contains all the code that belongs to the same, er, project! My advice is to have a single project while you\u2019re learning and not create a new project for each program you write. Think of this as your \u2018learning project\u2019 if you like. Later on, you\u2019ll know when it\u2019s time to start a new project for something new you\u2019ll start working on.<\/p>\n<p>Once you\u2019re in the project, Choose <em>New\u2026<\/em> from the <em>File<\/em> menu and then choose <em>Python File<\/em> from the menu that pops up (not the option that just says <em>File<\/em>.) You may wonder why an IDE like PyCharm designed for coding in Python, as the <em>Py-<\/em> prefix in its name shows, also gives you options for other file types. The reason is the <em>I<\/em> in <em>IDE<\/em>, which stands for <em>integrated<\/em>. These editors allow you to work on all the files you\u2019ll need in a project. For the time being, these will all be Python files, but you\u2019ll need other file types as well in your project in the future.<\/p>\n<p>Once you\u2019ve created a new Python file \u2014 note that Python files will have the extension <em>.py<\/em> \u2014 you should have a blank screen in front of you. You\u2019re ready to start to learn to code.<\/p>\n<p>In Chapter 1, you\u2019ll start writing your first program right away, and I\u2019ll guide you on how to run your program and view the output once you\u2019re ready to run your first lines of code.<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-buttons is-horizontal is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-7d812b4c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-50 is-style-outline is-style-outline--2\"><a class=\"wp-block-button__link has-text-color wp-element-button\" href=\"https:\/\/thepythoncodingbook.com\/1-getting-started-with-the-fundamentals-of-programming\/\" style=\"border-radius:3px;color:#6d227a\">Next Chapter<\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-buttons has-custom-font-size has-medium-font-size is-vertical is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-569b4b61 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-75 is-style-fill\"><a class=\"wp-block-button__link has-text-color has-background has-link-color wp-element-button\" href=\"https:\/\/thepythoncodingplace.com\/the-python-coding-book\/\" style=\"border-radius:3px;color:#fff3e6;background-color:#1a6b72\">Buy Paperback or EBook<\/a><\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-buttons is-horizontal is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-7d812b4c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-75 is-style-fill\"><a class=\"wp-block-button__link has-text-color has-background wp-element-button\" href=\"https:\/\/thepythoncodingbook.com\/book-outline\/\" style=\"border-radius:3px;color:#0d363a;background-color:#fdb33b\">Browse Zeroth Edition<\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group alignfull\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group alignfull\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-coblocks-hero alignfull coblocks-hero-230194844519\"><div class=\"wp-block-coblocks-hero__inner has-background hero-center-left-align has-padding has-huge-padding\" style=\"background-color:#1a6b72;min-height:500px\"><div class=\"wp-block-coblocks-hero__content-wrapper\"><div class=\"wp-block-coblocks-hero__content\" style=\"max-width:560px\">\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-806dd89de56256fb948e5020de497de4\" style=\"color:#fff3e6\">Become a Member of<\/h2>\n\n\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-7d78fcf199c064aa3173690e46837383\" style=\"color:#fff3e6\">The Python Coding Place<\/h2>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-57091ca0dd26b2b579f184ab1723dc89 wp-block-paragraph\" style=\"color:#fff3e6\">Video courses, live cohort-based courses, workshops, weekly videos, members&#8217; forum, and more\u2026<\/p>\n\n\n\n<div style=\"height:66px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-50\"><a class=\"wp-block-button__link has-black-color has-text-color has-background wp-element-button\" href=\"https:\/\/thepythoncodingplace.com\" style=\"background-color:#fdb33b\">Become a Member<\/a><\/div>\n<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div><\/div>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group alignfull\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group alignfull\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-coblocks-hero alignfull coblocks-hero-230194844519\"><div class=\"wp-block-coblocks-hero__inner has-background hero-center-left-align has-padding has-huge-padding\" style=\"background-color:#fff3e6;min-height:500px\"><div class=\"wp-block-coblocks-hero__content-wrapper\"><div class=\"wp-block-coblocks-hero__content\" style=\"max-width:560px\">\n<h2 class=\"wp-block-heading\">Subscribe to<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">The Python Coding Stack<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Regular articles for the intermediate Python programmer or a beginner who wants to &#8220;read ahead&#8221;<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-50\"><a class=\"wp-block-button__link has-black-color has-text-color has-background wp-element-button\" href=\"https:\/\/thepythoncodingstack.substack.com\" style=\"background-color:#fdb33b\">Subscribe<\/a><\/div>\n<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<div style=\"height:42px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<h4 class=\"wp-block-heading\"><\/h4>\n\n\n\n<div class=\"wp-block-jetpack-markdown\"><\/div>\n\n\n\n\n\n<hr class=\"wp-block-separator has-text-color has-alpha-channel-opacity has-background aligncenter is-style-wide\" style=\"background-color:#6d227a;color:#6d227a\"\/>\n\n\n\n\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<div style=\"height:149px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-text-color wp-block-paragraph\" style=\"color:#808284;font-size:11px;line-height:1.5\">\u00a9 Codetoday Limited. <a href=\"https:\/\/www.codetoday.co.uk\">Codetoday Limited<\/a> is a company\u00a0registered in England (company number 9789836). Registered office: 13 Hawley Crescent, London, NW1 8NP, United Kingdom<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":192321682,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_crdt_document":"","footnotes":""},"class_list":["post-38","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Learn to Code: Preface - The Python Coding Book<\/title>\n<meta name=\"description\" content=\"Getting started with learning to code in Python. In the Preface of the book you&#039;ll find out about how to learn to code, and how to start.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thepythoncodingbook.com\/1-introduction\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Learn to Code: Preface - The Python Coding Book\" \/>\n<meta property=\"og:description\" content=\"Getting started with learning to code in Python. In the Preface of the book you&#039;ll find out about how to learn to code, and how to start.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thepythoncodingbook.com\/1-introduction\/\" \/>\n<meta property=\"og:site_name\" content=\"The Python Coding Book\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-15T19:47:51+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"24 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thepythoncodingbook.com\\\/1-introduction\\\/\",\"url\":\"https:\\\/\\\/thepythoncodingbook.com\\\/1-introduction\\\/\",\"name\":\"How to Learn to Code: Preface - The Python Coding Book\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thepythoncodingbook.com\\\/#website\"},\"datePublished\":\"2021-04-30T14:27:35+00:00\",\"dateModified\":\"2024-03-15T19:47:51+00:00\",\"description\":\"Getting started with learning to code in Python. In the Preface of the book you'll find out about how to learn to code, and how to start.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thepythoncodingbook.com\\\/1-introduction\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thepythoncodingbook.com\\\/1-introduction\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thepythoncodingbook.com\\\/1-introduction\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thepythoncodingbook.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"0 | How To Learn To Code: Preface\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thepythoncodingbook.com\\\/#website\",\"url\":\"https:\\\/\\\/thepythoncodingbook.com\\\/\",\"name\":\"The Python Coding Book\",\"description\":\"The friendly, relaxed programming book\",\"publisher\":{\"@id\":\"https:\\\/\\\/thepythoncodingbook.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thepythoncodingbook.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thepythoncodingbook.com\\\/#organization\",\"name\":\"Codetoday\",\"url\":\"https:\\\/\\\/thepythoncodingbook.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/thepythoncodingbook.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/thepythoncodingbook.com\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/cropped-icon-only.png?fit=512%2C512&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/thepythoncodingbook.com\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/cropped-icon-only.png?fit=512%2C512&ssl=1\",\"width\":512,\"height\":512,\"caption\":\"Codetoday\"},\"image\":{\"@id\":\"https:\\\/\\\/thepythoncodingbook.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Learn to Code: Preface - The Python Coding Book","description":"Getting started with learning to code in Python. In the Preface of the book you'll find out about how to learn to code, and how to start.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thepythoncodingbook.com\/1-introduction\/","og_locale":"en_GB","og_type":"article","og_title":"How to Learn to Code: Preface - The Python Coding Book","og_description":"Getting started with learning to code in Python. In the Preface of the book you'll find out about how to learn to code, and how to start.","og_url":"https:\/\/thepythoncodingbook.com\/1-introduction\/","og_site_name":"The Python Coding Book","article_modified_time":"2024-03-15T19:47:51+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"24 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/thepythoncodingbook.com\/1-introduction\/","url":"https:\/\/thepythoncodingbook.com\/1-introduction\/","name":"How to Learn to Code: Preface - The Python Coding Book","isPartOf":{"@id":"https:\/\/thepythoncodingbook.com\/#website"},"datePublished":"2021-04-30T14:27:35+00:00","dateModified":"2024-03-15T19:47:51+00:00","description":"Getting started with learning to code in Python. In the Preface of the book you'll find out about how to learn to code, and how to start.","breadcrumb":{"@id":"https:\/\/thepythoncodingbook.com\/1-introduction\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thepythoncodingbook.com\/1-introduction\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/thepythoncodingbook.com\/1-introduction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thepythoncodingbook.com\/"},{"@type":"ListItem","position":2,"name":"0 | How To Learn To Code: Preface"}]},{"@type":"WebSite","@id":"https:\/\/thepythoncodingbook.com\/#website","url":"https:\/\/thepythoncodingbook.com\/","name":"The Python Coding Book","description":"The friendly, relaxed programming book","publisher":{"@id":"https:\/\/thepythoncodingbook.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thepythoncodingbook.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/thepythoncodingbook.com\/#organization","name":"Codetoday","url":"https:\/\/thepythoncodingbook.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/thepythoncodingbook.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/thepythoncodingbook.com\/wp-content\/uploads\/2021\/04\/cropped-icon-only.png?fit=512%2C512&ssl=1","contentUrl":"https:\/\/i0.wp.com\/thepythoncodingbook.com\/wp-content\/uploads\/2021\/04\/cropped-icon-only.png?fit=512%2C512&ssl=1","width":512,"height":512,"caption":"Codetoday"},"image":{"@id":"https:\/\/thepythoncodingbook.com\/#\/schema\/logo\/image\/"}}]}},"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Pd1Q8F-C","_links":{"self":[{"href":"https:\/\/thepythoncodingbook.com\/wp-json\/wp\/v2\/pages\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thepythoncodingbook.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thepythoncodingbook.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thepythoncodingbook.com\/wp-json\/wp\/v2\/users\/192321682"}],"replies":[{"embeddable":true,"href":"https:\/\/thepythoncodingbook.com\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":37,"href":"https:\/\/thepythoncodingbook.com\/wp-json\/wp\/v2\/pages\/38\/revisions"}],"predecessor-version":[{"id":3502,"href":"https:\/\/thepythoncodingbook.com\/wp-json\/wp\/v2\/pages\/38\/revisions\/3502"}],"wp:attachment":[{"href":"https:\/\/thepythoncodingbook.com\/wp-json\/wp\/v2\/media?parent=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}