{"id":278,"date":"2023-06-13T20:55:04","date_gmt":"2023-06-13T20:55:04","guid":{"rendered":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/?page_id=278"},"modified":"2023-06-13T20:57:46","modified_gmt":"2023-06-13T20:57:46","slug":"arithmetic-relational-logical-operators","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/","title":{"rendered":"Arithmetic, Relational &#038; Logical Operators"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Arithmetic Operators<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Arithmetic Operators<\/h3>\n<p>Arithmetic operators can be used in Python to perform various arithmetic operations on numeric values and variables.<\/p>\n<table style=\"height: 362px;\" width=\"603\">\n<thead>\n<tr>\n<th>Operator<\/th>\n<th>Description<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>+<\/code><\/td>\n<td>Addition<\/td>\n<td><code>3 + 5<\/code> = <code>8<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-<\/code><\/td>\n<td>Subtraction<\/td>\n<td><code>7 - 2<\/code> = <code>5<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>*<\/code><\/td>\n<td>Multiplication<\/td>\n<td><code>4 * 3<\/code> = <code>12<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>\/<\/code><\/td>\n<td>Division<\/td>\n<td><code>10 \/ 2<\/code> = <code>5.0<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>\/\/<\/code><\/td>\n<td>Floor Division<\/td>\n<td><code>10 \/\/ 3<\/code> = <code>3<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>%<\/code><\/td>\n<td>Modulus (Remainder)<\/td>\n<td><code>10 % 3<\/code> = <code>1<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>**<\/code><\/td>\n<td>Exponentiation<\/td>\n<td><code>2 ** 3<\/code> = <code>8<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>+=<\/code><\/td>\n<td>Increment<\/td>\n<td><code>x += 5<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-=<\/code><\/td>\n<td>Decrement<\/td>\n<td><code>x -= 3<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>*=<\/code><\/td>\n<td>Multiplication Assignment<\/td>\n<td><code>x *= 2<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>\/=<\/code><\/td>\n<td>Division Assignment<\/td>\n<td><code>x \/= 4<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Examples<\/strong><\/p>\n<p><!-- HTML generated using hilite.me --><\/p>\n<div style=\"background: #ffffff; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;\">\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\"># Addition<\/span>\r\nresult <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">5<\/span> <span style=\"color: #333333;\">+<\/span> <span style=\"color: #0000dd; font-weight: bold;\">3<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># 8<\/span>\r\n\r\n<span style=\"color: #888888;\"># Subtraction<\/span>\r\nresult <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">7<\/span> <span style=\"color: #333333;\">-<\/span> <span style=\"color: #0000dd; font-weight: bold;\">2<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># 5<\/span>\r\n\r\n<span style=\"color: #888888;\"># Multiplication<\/span>\r\nresult <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">4<\/span> <span style=\"color: #333333;\">*<\/span> <span style=\"color: #0000dd; font-weight: bold;\">3<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># 12<\/span>\r\n\r\n<span style=\"color: #888888;\"># Division<\/span>\r\nresult <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">10<\/span> <span style=\"color: #333333;\">\/<\/span> <span style=\"color: #0000dd; font-weight: bold;\">2<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># 5.0<\/span>\r\n\r\n<span style=\"color: #888888;\"># Floor Division<\/span>\r\nresult <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">10<\/span> <span style=\"color: #333333;\">\/\/<\/span> <span style=\"color: #0000dd; font-weight: bold;\">3<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># 3<\/span>\r\n\r\n<span style=\"color: #888888;\"># Modulus (Remainder)<\/span>\r\nresult <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">10<\/span> <span style=\"color: #333333;\">%<\/span> <span style=\"color: #0000dd; font-weight: bold;\">3<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># 1<\/span>\r\n\r\n<span style=\"color: #888888;\"># Exponentiation<\/span>\r\nresult <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">2<\/span> <span style=\"color: #333333;\">**<\/span> <span style=\"color: #0000dd; font-weight: bold;\">3<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># 8<\/span>\r\n\r\n<span style=\"color: #888888;\"># Increment<\/span>\r\nx <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">5<\/span>\r\nx <span style=\"color: #333333;\">+=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">1<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(x)       <span style=\"color: #888888;\"># 6<\/span>\r\n\r\n<span style=\"color: #888888;\"># Decrement<\/span>\r\ny <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">7<\/span>\r\ny <span style=\"color: #333333;\">-=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">1<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(y)       <span style=\"color: #888888;\"># 6<\/span>\r\n\r\n<span style=\"color: #888888;\"># Multiplication Assignment<\/span>\r\nz <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">4<\/span>\r\nz <span style=\"color: #333333;\">*=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">3<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(z)       <span style=\"color: #888888;\"># 12<\/span>\r\n\r\n<span style=\"color: #888888;\"># Division Assignment<\/span>\r\nw <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">10<\/span>\r\nw <span style=\"color: #333333;\">\/=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">2<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(w)       <span style=\"color: #888888;\"># 5.0<\/span>\r\n<\/pre>\n<\/div>\n\n<\/div><h2 class=\"tabtitle\">Relational Operators<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Relational Operators<\/h3>\n<p>Relational operators in Python are used to compare values and determine the relationship between them. These operators return Boolean values (<code>True<\/code> or <code>False<\/code>) based on the comparison result. Here are the relational operators in Python:<\/p>\n<table style=\"height: 214px;\" width=\"630\">\n<thead>\n<tr>\n<th>Operator<\/th>\n<th>Description<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>==<\/code><\/td>\n<td>Equal to<\/td>\n<td><code>5 == 5<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>!=<\/code><\/td>\n<td>Not equal to<\/td>\n<td><code>5 != 3<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&gt;<\/code><\/td>\n<td>Greater than<\/td>\n<td><code>7 &gt; 3<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;<\/code><\/td>\n<td>Less than<\/td>\n<td><code>2 &lt; 4<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&gt;=<\/code><\/td>\n<td>Greater than or equal to<\/td>\n<td><code>6 &gt;= 4<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;=<\/code><\/td>\n<td>Less than or equal to<\/td>\n<td><code>3 &lt;= 3<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>These operators can be used to compare numeric values, strings, variables, or expressions. The result of the comparison is a Boolean value indicating whether the comparison is true or false.<\/p>\n<h3>Examples<\/h3>\n<p><!-- HTML generated using hilite.me --><\/p>\n<div style=\"background: #ffffff; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;\">\n<pre style=\"margin: 0; line-height: 125%;\">x <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">5<\/span>\r\ny <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">7<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(x <span style=\"color: #333333;\">==<\/span> y)   <span style=\"color: #888888;\"># False<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(x <span style=\"color: #333333;\">!=<\/span> y)   <span style=\"color: #888888;\"># True<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(x <span style=\"color: #333333;\">&gt;<\/span> y)    <span style=\"color: #888888;\"># False<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(x <span style=\"color: #333333;\">&lt;<\/span> y)    <span style=\"color: #888888;\"># True<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(x <span style=\"color: #333333;\">&gt;=<\/span> y)   <span style=\"color: #888888;\"># False<\/span>\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(x <span style=\"color: #333333;\">&lt;=<\/span> y)   <span style=\"color: #888888;\"># True<\/span>\r\n<\/pre>\n<\/div>\n\n<\/div><h2 class=\"tabtitle\">Logical Operators<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Logical Operators<\/h3>\n<p>Logical operators in Python are used to combine or manipulate Boolean values (<code>True<\/code> or <code>False<\/code>). These operators allow you to perform logical operations and make decisions based on multiple conditions.<\/p>\n<table>\n<thead>\n<tr>\n<th>Operator<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>and<\/code><\/td>\n<td>Returns <code>True<\/code> if both operands are <code>True<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>or<\/code><\/td>\n<td>Returns <code>True<\/code> if at least one operand is <code>True<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>not<\/code><\/td>\n<td>Returns the opposite Boolean value of the operand<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>These operators are used to combine or manipulate Boolean values and are commonly used in conditional statements, loops, and Boolean expressions.<\/p>\n<h3>Examples<\/h3>\n<p><!-- HTML generated using hilite.me --><\/p>\n<div style=\"background: #ffffff; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;\">\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\"># Example 1<\/span>\r\nx <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">5<\/span>\r\ny <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">7<\/span>\r\nz <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">3<\/span>\r\n\r\nresult <span style=\"color: #333333;\">=<\/span> (x <span style=\"color: #333333;\">&lt;<\/span> y) <span style=\"color: #000000; font-weight: bold;\">and<\/span> (y <span style=\"color: #333333;\">&lt;<\/span> z)\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># False<\/span>\r\n\r\n<span style=\"color: #888888;\"># Example 2<\/span>\r\nx <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">5<\/span>\r\ny <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">7<\/span>\r\nz <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">3<\/span>\r\n\r\nresult <span style=\"color: #333333;\">=<\/span> (x <span style=\"color: #333333;\">&lt;<\/span> y) <span style=\"color: #000000; font-weight: bold;\">or<\/span> (y <span style=\"color: #333333;\">&lt;<\/span> z)\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># True<\/span>\r\n\r\n<span style=\"color: #888888;\"># Example 3<\/span>\r\nx <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">5<\/span>\r\n\r\nresult <span style=\"color: #333333;\">=<\/span> <span style=\"color: #000000; font-weight: bold;\">not<\/span> (x <span style=\"color: #333333;\">&lt;<\/span> <span style=\"color: #0000dd; font-weight: bold;\">10<\/span>)\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(result)   <span style=\"color: #888888;\"># False<\/span>\r\n<\/pre>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Arithmetic Operators Arithmetic operators can be used in Python to perform various arithmetic operations on numeric values and variables. Operator Description Example + Addition 3 + 5 = 8 &#8211; Subtraction 7 &#8211; 2 = 5 * Multiplication 4 * 3 = 12 \/ Division 10 \/ 2 = 5.0 \/\/ Floor Division 10 \/\/&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Arithmetic, Relational &#038; Logical Operators<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"off","neve_meta_content_width":100,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Arithmetic, Relational &#038; Logical Operators - Edexcel iGCSE Computer Science<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Arithmetic, Relational &#038; Logical Operators - Edexcel iGCSE Computer Science\" \/>\n<meta property=\"og:description\" content=\"Arithmetic Operators Arithmetic operators can be used in Python to perform various arithmetic operations on numeric values and variables. Operator Description Example + Addition 3 + 5 = 8 - Subtraction 7 - 2 = 5 * Multiplication 4 * 3 = 12 \/ Division 10 \/ 2 = 5.0 \/\/ Floor Division 10 \/\/&hellip;&nbsp;Read More &raquo;Arithmetic, Relational &#038; Logical Operators\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/\" \/>\n<meta property=\"og:site_name\" content=\"Edexcel iGCSE Computer Science\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-13T20:57:46+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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/\",\"url\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/\",\"name\":\"Arithmetic, Relational &#038; Logical Operators - Edexcel iGCSE Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/#website\"},\"datePublished\":\"2023-06-13T20:55:04+00:00\",\"dateModified\":\"2023-06-13T20:57:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Arithmetic, Relational &#038; Logical Operators\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/#website\",\"url\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/\",\"name\":\"Edexcel iGCSE Computer Science\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Arithmetic, Relational &#038; Logical Operators - Edexcel iGCSE Computer Science","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:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/","og_locale":"en_GB","og_type":"article","og_title":"Arithmetic, Relational &#038; Logical Operators - Edexcel iGCSE Computer Science","og_description":"Arithmetic Operators Arithmetic operators can be used in Python to perform various arithmetic operations on numeric values and variables. Operator Description Example + Addition 3 + 5 = 8 - Subtraction 7 - 2 = 5 * Multiplication 4 * 3 = 12 \/ Division 10 \/ 2 = 5.0 \/\/ Floor Division 10 \/\/&hellip;&nbsp;Read More &raquo;Arithmetic, Relational &#038; Logical Operators","og_url":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/","og_site_name":"Edexcel iGCSE Computer Science","article_modified_time":"2023-06-13T20:57:46+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/","url":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/","name":"Arithmetic, Relational &#038; Logical Operators - Edexcel iGCSE Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/#website"},"datePublished":"2023-06-13T20:55:04+00:00","dateModified":"2023-06-13T20:57:46+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/arithmetic-relational-logical-operators\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/"},{"@type":"ListItem","position":2,"name":"Arithmetic, Relational &#038; Logical Operators"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/#website","url":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/","name":"Edexcel iGCSE Computer Science","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Arithmetic Operators Arithmetic operators can be used in Python to perform various arithmetic operations on numeric values and variables. Operator Description Example + Addition 3 + 5 = 8 - Subtraction 7 - 2 = 5 * Multiplication 4 * 3 = 12 \/ Division 10 \/ 2 = 5.0 \/\/ Floor Division 10 \/\/&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/pages\/278"}],"collection":[{"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":2,"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/pages\/278\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/pages\/278\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/media?parent=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}