{"id":373,"date":"2024-07-12T11:09:17","date_gmt":"2024-07-12T06:09:17","guid":{"rendered":"https:\/\/augurytech.co.uk\/courses\/?p=373"},"modified":"2024-10-05T09:06:26","modified_gmt":"2024-10-05T04:06:26","slug":"python-math-operations","status":"publish","type":"post","link":"https:\/\/augurytech.co.uk\/courses\/python\/python-math-operations\/","title":{"rendered":"Python: Math Operations"},"content":{"rendered":"\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-adf2eb3b wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-container-core-column-is-layout-92d440f1 wp-block-column-is-layout-flow\" style=\"padding-top:0;padding-bottom:0\">\n<div class=\"wp-block-kadence-icon kt-svg-icons kt-svg-icons373_f5d7dc-b4 alignnone\">\n<div class=\"wp-block-kadence-single-icon kt-svg-style-default kt-svg-icon-wrap kt-svg-item-373_93a547-fa\"><span class=\"kb-svg-icon-wrap kb-svg-icon-fe_plus\"><svg viewBox=\"0 0 24 24\"  fill=\"none\" stroke=\"currentColor\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"  aria-hidden=\"true\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"\/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/span><\/div>\n<\/div>\n\n\n\n<p>Adds values on either side of the operator<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>a + b = 30<\/strong><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-container-core-column-is-layout-92d440f1 wp-block-column-is-layout-flow\" style=\"padding-top:0;padding-bottom:0\">\n<div class=\"wp-block-kadence-icon kt-svg-icons kt-svg-icons373_567ea3-ae alignnone\">\n<div class=\"wp-block-kadence-single-icon kt-svg-style-default kt-svg-icon-wrap kt-svg-item-373_0c5ed2-3e\"><span class=\"kb-svg-icon-wrap kb-svg-icon-fe_minus\"><svg viewBox=\"0 0 24 24\"  fill=\"none\" stroke=\"currentColor\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"  aria-hidden=\"true\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/span><\/div>\n<\/div>\n\n\n\n<p>Subtracts right hand operand from left hand operand<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>a &#8211; b = -10<\/strong><\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-e56bfcbc wp-block-columns-is-layout-flex\" style=\"margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)\">\n<div class=\"wp-block-column is-layout-flow wp-container-core-column-is-layout-92d440f1 wp-block-column-is-layout-flow\" style=\"padding-top:0;padding-bottom:0\">\n<div class=\"wp-block-kadence-icon kt-svg-icons kt-svg-icons373_2a945b-7c alignnone\">\n<div class=\"wp-block-kadence-single-icon kt-svg-style-default kt-svg-icon-wrap kt-svg-item-373_d93173-50\"><span class=\"kb-svg-icon-wrap kb-svg-icon-fe_x\"><svg viewBox=\"0 0 24 24\"  fill=\"none\" stroke=\"currentColor\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"  aria-hidden=\"true\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"\/><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"\/><\/svg><\/span><\/div>\n<\/div>\n\n\n\n<p>Multiplies values on either side of the operator<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>a * b = 200<\/strong><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-container-core-column-is-layout-92d440f1 wp-block-column-is-layout-flow\" style=\"padding-top:0;padding-bottom:0\">\n<div class=\"wp-block-kadence-icon kt-svg-icons kt-svg-icons373_d9cddf-2a alignnone\">\n<div class=\"wp-block-kadence-single-icon kt-svg-style-default kt-svg-icon-wrap kt-svg-item-373_90634d-9b\"><span class=\"kb-svg-icon-wrap kb-svg-icon-fas_divide\"><svg viewBox=\"0 0 448 512\"  fill=\"currentColor\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"  aria-hidden=\"true\"><path d=\"M224 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm0-192c35.35 0 64-28.65 64-64s-28.65-64-64-64-64 28.65-64 64 28.65 64 64 64zm192 48H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"\/><\/svg><\/span><\/div>\n<\/div>\n\n\n\n<p>Divides left hand operand by right hand operand<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>b \/ a = 2<\/strong><\/p>\n<\/div>\n<\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-353c4f5a wp-block-group-is-layout-flex\">\n<h3 class=\"wp-block-heading\">Addition Operations<\/h3>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.612), 1.5rem);\"><code>add_number = 4\nadd_number = 4 + 4<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The variable <strong>add_number<\/strong> holds a value <strong>4<\/strong>.<\/li>\n\n\n\n<li>Adds another integer <strong>4<\/strong> and assigns the answer to the same variable.<\/li>\n\n\n\n<li>&#8220;<strong> +<\/strong> &#8221; is plus operator<\/li>\n<\/ol>\n<\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-353c4f5a wp-block-group-is-layout-flex\">\n<h3 class=\"wp-block-heading\">Subtraction Operations<\/h3>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.612), 1.5rem);\"><code>subtract_number = 9\nsubtract_number = 9 - 4<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The variable <strong>subtract_number<\/strong> holds a value <strong>9<\/strong>.<\/li>\n\n\n\n<li>Subtracts another integer <strong>4<\/strong> and assigns the answer to the same variable.<\/li>\n\n\n\n<li>&#8221; <strong>&#8211;<\/strong> &#8221; is minus operator<\/li>\n<\/ol>\n<\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-353c4f5a wp-block-group-is-layout-flex\">\n<h3 class=\"wp-block-heading\">Multiplication Operations<\/h3>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.612), 1.5rem);\"><code>multiply_number = 7\nmultiply_number = 7 * 5<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The variable <strong>multiply_number<\/strong> holds a value <strong>7<\/strong>.<\/li>\n\n\n\n<li>Multiply another integer <strong>5<\/strong> and assigns the answer to the same variable.<\/li>\n\n\n\n<li>&#8221; \u066d &#8221; is multiply operator<\/li>\n<\/ol>\n<\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-353c4f5a wp-block-group-is-layout-flex\">\n<h3 class=\"wp-block-heading\">Division Operations<\/h3>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.612), 1.5rem);\"><code>divide_number = 7\ndivide_number = 7 \/ 5<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The variable <strong>divide_number<\/strong> holds a value <strong>7<\/strong>.<\/li>\n\n\n\n<li>Divide another integer <strong>5<\/strong> and assigns the answer to the same variable.<\/li>\n\n\n\n<li>&#8221; \/ &#8221; is divide operator<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Adds values on either side of the operator a + b = 30 Subtracts right hand operand from left hand operand a &#8211; b = -10 Multiplies values on either side of the operator a * b = 200 Divides left hand operand by right hand operand b \/ a = 2 Addition Operations Subtraction [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"wp-custom-template-python","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"categories":[5],"tags":[],"class_list":{"0":"post-373","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-python"},"_links":{"self":[{"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/posts\/373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/comments?post=373"}],"version-history":[{"count":14,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/posts\/373\/revisions"}],"predecessor-version":[{"id":388,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/posts\/373\/revisions\/388"}],"wp:attachment":[{"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/media?parent=373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/categories?post=373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/tags?post=373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}