You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"payload":{"allShortcutsEnabled":false,"path":"advanced","repo":{"id":271788669,"defaultBranch":"master","name":"python-tutorial","ownerLogin":"arindam-samanta","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2020-06-12T12:06:20.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/46417469?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1618413952.054962","canEdit":false,"refType":"branch","currentOid":"2d1b2f1cb050597a2025fc35b8da440bc97a3118"},"tree":{"items":[{"name":"README.md","path":"advanced/README.md","contentType":"file"},{"name":"answers.md","path":"advanced/answers.md","contentType":"file"},{"name":"datatypes.md","path":"advanced/datatypes.md","contentType":"file"},{"name":"functions.md","path":"advanced/functions.md","contentType":"file"},{"name":"iters.md","path":"advanced/iters.md","contentType":"file"},{"name":"magicmethods.md","path":"advanced/magicmethods.md","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAdvanced\u003c/h1\u003e\u003ca id=\"user-content-advanced\" class=\"anchor\" aria-label=\"Permalink: Advanced\" href=\"#advanced\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf you want to learn more advanced techniques, you can also read this\nsection. Most of the techniques explained here are great when you're\nworking on a large project, and your code would be really repetitive\nwithout these things.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can experient with these things freely, but please \u003cstrong\u003edon't use these\ntechniques just because you know how to use them.\u003c/strong\u003e Prefer the simple\ntechniques from the Basics part instead when possible. Simple is better\nthan complex.\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"/arindam-samanta/python-tutorial/blob/master/advanced/datatypes.md\"\u003eHandy data types\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/arindam-samanta/python-tutorial/blob/master/advanced/functions.md\"\u003eAdvanced stuff with functions\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/arindam-samanta/python-tutorial/blob/master/advanced/magicmethods.md\"\u003eMagic methods\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/arindam-samanta/python-tutorial/blob/master/advanced/iters.md\"\u003eIterables, iterators and generators\u003c/a\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\u003chr\u003e\n\u003cp dir=\"auto\"\u003eIf you have trouble with this tutorial please \u003ca href=\"/arindam-samanta/python-tutorial/blob/master/contact-me.md\"\u003etell me about\nit\u003c/a\u003e and I'll make this tutorial better. If you\nlike this tutorial, please \u003ca href=\"/arindam-samanta/python-tutorial/blob/master/README.md#how-can-i-thank-you-for-writing-and-sharing-this-tutorial\"\u003egive it a\nstar\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou may use this tutorial freely at your own risk. See\n\u003ca href=\"/arindam-samanta/python-tutorial/blob/master/LICENSE\"\u003eLICENSE\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"/arindam-samanta/python-tutorial/blob/master/README.md#list-of-contents\"\u003eList of contents\u003c/a\u003e\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Advanced","anchor":"advanced","htmlText":"Advanced"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Farindam-samanta%2Fpython-tutorial%2Ftree%2Fmaster%2Fadvanced"}},"totalCount":6,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":"advanced","path":"advanced","contentType":"directory"},{"name":"basics","path":"basics","contentType":"directory"},{"name":"images","path":"images","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"TODO.md","path":"TODO.md","contentType":"file"},{"name":"classes.md","path":"classes.md","contentType":"file"},{"name":"common.py","path":"common.py","contentType":"file"},{"name":"contact-me.md","path":"contact-me.md","contentType":"file"},{"name":"getting-help.md","path":"getting-help.md","contentType":"file"},{"name":"html-style.css","path":"html-style.css","contentType":"file"},{"name":"linkcheck.py","path":"linkcheck.py","contentType":"file"},{"name":"make-html.py","path":"make-html.py","contentType":"file"},{"name":"update-ends.py","path":"update-ends.py","contentType":"file"},{"name":"update-readmes.py","path":"update-readmes.py","contentType":"file"},{"name":"what-next.md","path":"what-next.md","contentType":"file"}],"totalCount":17}},"fileTreeProcessingTime":2.318256,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/arindam-samanta/python-tutorial/branches":{"post":"Mb7L7VsS2QukIBP32Lx4y4Cd7qwBpxR70asJk1c-IY5k9PmrS3C8JSeWf7ONwrutC_pcVtA3S-fz7qDDEMdP4w"},"/arindam-samanta/python-tutorial/branches/fetch_and_merge/master":{"post":"FN20ZK2ZELuQV-WBEDMk36eev_NyrwE6ZJLUEaKapNb7uW1F4N5C4dX5mKqrcB0F4mcMXHosLSpp2HJOGOtrDA"},"/arindam-samanta/python-tutorial/branches/fetch_and_merge/master?discard_changes=true":{"post":"ID8P-OelHRAh8dyGhHtYtqM00BtYJPV62yrDlmbkg7vPW9bZquJPSmRfoa0_OGFs5s1jtFCn2WrWYGXJ3JVMYQ"}}},"title":"python-tutorial/advanced at master · arindam-samanta/python-tutorial","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}