[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571389-105":53,"doc-detail-571389-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","python-cheat-sheet-a-quick-start-for-python-basics","Python Cheat Sheet - A Quick Start for Python Basics","","Python Cheat Sheet provides a beginner-focused overview of essential Python concepts used in Mosh Hamedani’s YouTube tutorial. It covers variables and basic data types, writing effective comments, receiving user input with input() and converting types, string creation and indexing/slicing, formatted strings and common string methods, and introduces arithmetic operators. The material is organized into numbered sections with page references to support quick revision.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/python-cheat-sheet-a-quick-start-for-python-basics/571389/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/python-cheat-sheet-a-quick-start-for-python-basics/571389.png","ImageObject",442,249,{"name":88,"@type":89},"Emma Wilson","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-21","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",7,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"What are variables used for in Python?","Question",{"text":109,"@type":110},"Variables temporarily store data in computer memory. The sheet shows examples like price, rating, course_name, and is_published with different data types.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How does input() handle user input in Python?",{"text":114,"@type":110},"The input() function returns data as a string. The sheet demonstrates converting it to an integer using the built-in int() function.",{"name":116,"@type":107,"acceptedAnswer":117},"How can you access and modify strings in Python?",{"text":118,"@type":110},"The sheet explains indexing (e.g., course[0], course[-1]), slicing with ranges (e.g., course[1:5]), formatted strings with f-strings, and common methods like upper(), lower(), title(), find(), and replace().","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},571389,1792242026,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":20,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":47},3848291630094,"https://eur-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Python  \nCheat Sheet  \nMosh Hamedani  \nCode with Mosh ([codewithmosh.com](codewithmosh.com))  \n1st Edition  \nAbout this Cheat Sheet  \nThis cheat sheet includes the materials I’ve covered in my Python tutorial for Beginners on YouTube. Both the YouTube tutorial and this cheat cover the core language constructs but they are not complete by any means.  \nIf you want to learn everything Python has to offer and become a Python expert, check out my Complete Python Programming Course:  \n[http://bit.ly/complete-python-course](http://bit.ly/complete-python-course)  \nAbout the Author  \nHi! My name is Mosh Hamedani. I’m a software engineer with two decades of experience and I’ve taught over three million how to code or how to become a professional software engineer. It’s my mission to make software engineering simple and accessible to everyone.  \n[https://codewithmosh.com](https://codewithmosh.com)  \n[https://youtube.com/user/programmingwithmosh](https://youtube.com/user/programmingwithmosh)  \n[https://twitter.com/moshhamedani](https://twitter.com/moshhamedani)  \n[https://facebook.com/programmingwithmosh/](https://facebook.com/programmingwithmosh/)  \nVariables .................................................................................................. 5  \nComments ................................................................................................. 5  \nReceiving Input ........................................................................................ 5  \nStrings ...................................................................................................... 6  \nArithmetic Operations ............................................................................. 7  \nIf Statements ............................................................................................ 8  \nComparison operators ............................................................................ 8  \nWhile loops ............................................................................................... 8  \nFor loops ................................................................................................... 9  \nLists ........................................................................................................... 9  \nTuples ........................................................................................................ 9  \nDictionaries ............................................................................................. 10  \nFunctions ................................................................................................. 10  \nExceptions ................................................................................................ 11  \nClasses ...................................................................................................... 11  \nInheritance ............................................................................................. 12  \nModules ................................................................................................... 12  \nPackages .................................................................................................. 13  \nPython Standard Library ...................................................................... 13  \nPypi ......................................................................................................... 14  \nWant to Become a Python Expert? ........................................................ 14  \nVariables  \nWe use variables to temporarily store data in computer’s memory. price = 10  \nrating = 4.9  \ncourse_name = ‘Python for Beginners’  \nis_published = True  \nIn the above example,  \n• price is an integer (a whole number without a decimal point)  \n• rating is afloat (a number with a decimal point)  \n• course_name is a string (a sequence of characters)  \n• is_published is a boolean. Boolean values can be True or False.  \nComments  \nWe use comments to add notes to our code. Good comments explain the hows an","cbCailxStXmsfTbV","https://ap.wps.com/l/cbCailxStXmsfTbV","pdf",2442327,"English","# Variables\n# Comments\n# Receiving Input\n# Strings\n# Arithmetic Operations\n# If Statements\n# Comparison operators\n# While loops\n# For loops\n# Lists\n# Tuples\n# Dictionaries\n# Functions\n# Exceptions\n# Classes\n# Inheritance\n# Modules\n# Packages\n# Python Standard Library\n# Pypi\n# Want to Become a Python Expert?","[{\"question\":\"What are variables used for in Python?\",\"answer\":\"Variables temporarily store data in computer memory. The sheet shows examples like price, rating, course_name, and is_published with different data types.\"},{\"question\":\"How does input() handle user input in Python?\",\"answer\":\"The input() function returns data as a string. The sheet demonstrates converting it to an integer using the built-in int() function.\"},{\"question\":\"How can you access and modify strings in Python?\",\"answer\":\"The sheet explains indexing (e.g., course[0], course[-1]), slicing with ranges (e.g., course[1:5]), formatted strings with f-strings, and common methods like upper(), lower(), title(), find(), and replace().\"}]","Python Cheat Sheet - A Quick Start for Python Basics | PDF",1791914946]