{"id":41,"date":"2024-01-04T14:30:06","date_gmt":"2024-01-04T14:30:06","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/g_cruz\/?p=41"},"modified":"2024-01-04T14:35:15","modified_gmt":"2024-01-04T14:35:15","slug":"2d-lists","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/g_cruz\/2024\/01\/04\/2d-lists\/","title":{"rendered":"2D Lists"},"content":{"rendered":"\n<p>I am currently learning to utilize 2-Dimensional lists in Python<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Two nested [FOR] loops can allow me to access EVERY list item.\n<ul class=\"wp-block-list\">\n<li>[given &#8220;A&#8221; for the list]<br>A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]<br><br>for row in A:<br>      for col in row:<br>            print(col)<br>            #will print each item in the list individually<br><br>[OUTPUT]<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>I learned that I can not only print out each item, but add them up and get an average between the values (IF THEY ARE INTEGERS)<\/li>\n\n\n\n<li>I also am learning to make graphics with these lists<\/li>\n<\/ul>\n\n\n\n<p>I will keep up and try to post about anything else that I learn in the meantime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am currently learning to utilize 2-Dimensional lists in Python I will keep up and try to post about anything else that I learn in the meantime.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-progress"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/posts\/41\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/g_cruz\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}