{"id":220,"date":"2023-03-15T03:41:50","date_gmt":"2023-03-15T03:41:50","guid":{"rendered":"https:\/\/joseph-t-gordon.tech\/?p=220"},"modified":"2023-06-26T14:23:04","modified_gmt":"2023-06-26T14:23:04","slug":"post-34-python-variables","status":"publish","type":"post","link":"https:\/\/joseph-t-gordon.tech\/index.php\/2023\/03\/15\/post-34-python-variables\/","title":{"rendered":"Post #34 (Python Programming) &#8211; Python Variables"},"content":{"rendered":"\n<p>This post will be rather short as there&#8217;s not much to say important things to note are that a variable is something you set and can later use in your code. Your variables cannot start with a number, contain spaces, or be a currently existing function such as print. You can also assign variables new values and use them in expressions<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Code:<\/p>\n\n\n\n<p>var = 1<\/p>\n\n\n\n<p>print(var)<\/p>\n\n\n\n<p>var = var + 1<\/p>\n\n\n\n<p>print(var)<\/p>\n\n\n\n<p>print(var**2)<\/p>\n\n\n\n<p>Result:<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post will be rather short as there&#8217;s not much to say important things to note are that a variable is something you set and can later use in your code. Your variables cannot start with a number, contain spaces, or be a currently existing function such as print. You can also assign variables new&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/posts\/220"}],"collection":[{"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":2,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":318,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions\/318"}],"wp:attachment":[{"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joseph-t-gordon.tech\/index.php\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}