{"id":14,"date":"2015-08-31T07:14:00","date_gmt":"2015-08-31T07:14:00","guid":{"rendered":"http:\/\/coolt.ch\/notizen\/?p=14"},"modified":"2015-09-08T11:14:45","modified_gmt":"2015-09-08T11:14:45","slug":"listen","status":"publish","type":"post","link":"https:\/\/coolt.ch\/notizen\/listen\/","title":{"rendered":"Listen"},"content":{"rendered":"<p><strong>Syntax<br \/>\n<\/strong>list = [ \u201edas\u201c, 1, \u201ewer\u201c ]<\/p>\n<p><strong>Indices<\/strong><br \/>\nlist[0]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 =\u00a0 &#8222;das&#8220;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 positive Index: von links nach rechts<br \/>\nlist[1]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 =\u00a0 1<br \/>\nlist[-1]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 =\u00a0 &#8222;wer&#8220;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 negative Index: von rechts nach links<\/p>\n<p><strong>Wert zur Liste<br \/>\n<\/strong>list.<strong>insert( <\/strong>index,\u00a0 value)\u00a0\u00a0 an exater Stelle einf\u00fcgen<br \/>\nlist<strong>.append(<\/strong> value ) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 am Ende einf\u00fcgen<\/p>\n<p><strong>Wert entfernen<\/strong><br \/>\nlist.remove(value)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 dieser Wert l\u00f6schen<br \/>\nlist.pop(index)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Element bei diesem Index l\u00f6schen<br \/>\n.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 R\u00fcckgabewert: Wert des gel\u00f6schten Elements<br \/>\ndel( list[index] )\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Element bei diesem Index l\u00f6schen<\/p>\n<p><strong>Wert hinzuf\u00fcgen<\/strong><br \/>\nb = list[0]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Wert aus Liste zuweisen<br \/>\nlist[2]\u00a0 = &#8222;dieser&#8220;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Neuer Wert einem Element zuweisen<\/p>\n<p><strong>Numerierte Liste\u00a0 als R\u00fcckgabewert \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><strong><br \/>\n<\/strong>range(stop)\u00a0\u00a0\u00a0\u00a0\u00a0<strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong>range(4)\u00a0\u00a0 \u00a0 \u00a0\u00a0 =&gt; [0, 1, 2, 3]<br \/>\nrange(start, stop)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 range(2, 4)\u00a0 =&gt;\u00a0 [2, 3 ]<br \/>\nrange(start, stop, step) \u00a0 \u00a0 \u00a0 range(1, 6, 2) \u00a0 =&gt; [1, 3 ,5]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Syntax list = [ \u201edas\u201c, 1, \u201ewer\u201c ] Indices list[0]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 =\u00a0 &#8222;das&#8220;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 positive Index: von links nach rechts list[1]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 =\u00a0 1 list[-1]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 =\u00a0 &#8222;wer&#8220;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 negative Index: von rechts nach links Wert zur Liste list.insert( index,\u00a0 value)\u00a0\u00a0 an exater Stelle einf\u00fcgen list.append( value ) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 am Ende einf\u00fcgen Wert entfernen list.remove(value)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &hellip; <a href=\"https:\/\/coolt.ch\/notizen\/listen\/\" class=\"more-link\"><span class=\"screen-reader-text\">Listen<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[5],"_links":{"self":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/14"}],"collection":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":10,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":57,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/14\/revisions\/57"}],"wp:attachment":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}