{"id":48,"date":"2026-05-08T15:25:12","date_gmt":"2026-05-08T15:25:12","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/m_vicander\/?p=48"},"modified":"2026-05-08T15:25:12","modified_gmt":"2026-05-08T15:25:12","slug":"what-i-did-this-friday","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/m_vicander\/2026\/05\/08\/what-i-did-this-friday\/","title":{"rendered":"what i did this friday"},"content":{"rendered":"\n<p>what i did this friday is make a calculator and learn how to do this myself<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Choose an operation:\")\nprint(\"1 - Add\")\nprint(\"2 - Subtract\")\nprint(\"3 - Multiply\")\nprint(\"4 - Divide\")\noption = int(input(\"choose an operation\"))\n\nif(option in &#91;1,2,3,4]):\n    num1 = int(input(\"Enter first number: \"))\n    num2 = int(input(\"Enter first number: \"))\n\n    if(option == 1):\n        result = num1 + num2\n    elif(option ==2):\n        result = num1 - num2\n    elif(option ==3):\n        result = num1 * num2\n    elif(option ==4):\n        result = num1 \/\/ num2\n\n\n\nelse:\n    print(\"Invalid opertion enter\")\n\nprint(\"The result of the operation is {}\".format(result))<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>what i did this friday is make a calculator and learn how to do this myself<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/posts\/48\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/m_vicander\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}