{"id":4788,"date":"2024-12-11T16:34:39","date_gmt":"2024-12-11T16:34:39","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4788"},"modified":"2024-12-11T16:43:04","modified_gmt":"2024-12-11T16:43:04","slug":"converting-values-in-python","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/memory-python\/converting-values-in-python","title":{"rendered":"Converting values in Python"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Strings<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>    #variable to string\n    my_string = str(my_variable)\n\n    #string to int\n    my_variable = int(my_string)\n\n    #string to float\n    my_variable = float(my_string)<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Strings<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[],"class_list":["post-4788","post","type-post","status-publish","format-standard","hentry","category-memory-python"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4788"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4788\/revisions"}],"predecessor-version":[{"id":4789,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4788\/revisions\/4789"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}