{"id":25579049,"date":"2024-03-21T07:31:44","date_gmt":"2024-03-21T02:01:44","guid":{"rendered":"https:\/\/entri.app\/blog\/?p=25579049"},"modified":"2024-03-25T16:29:16","modified_gmt":"2024-03-25T10:59:16","slug":"python-naming-conventions","status":"publish","type":"post","link":"https:\/\/entri.app\/blog\/python-naming-conventions\/","title":{"rendered":"Python Naming Convention: Updated Guide!"},"content":{"rendered":"<p>Naming conventions are rules for giving names to things in Python. They help make your code easier to understand and work with. By following these rules, you can make sure that your variables, functions, and other parts of your code have names that make sense and are easy to read. This article is about \u201cPython Naming Convention: Updated Guide\u201d.<\/p>\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">Ready to take your python programming skills to the next level? Sign up for a free demo today!<\/a><\/strong><\/p>\n<p>Python&#8217;s naming conventions\u00a0makes sure that there is clarity and consistency in code. Here&#8217;s a simple guide to follow when naming variables, functions, classes, and more in Python:<\/p>\n<h4><strong><b>Variable Names:<\/b><\/strong><\/h4>\n<ul>\n<li>Use lowercase letters with underscores (snake_case).<\/li>\n<li><strong>Example<\/strong>: num_students, user_name, total_count.<\/li>\n<li>Variable names should be descriptive and convey the purpose of the variable.<\/li>\n<\/ul>\n<h4><strong><b>Function Names:<\/b><\/strong><\/h4>\n<ul>\n<li>Use lowercase letters with underscores (snake_case).<\/li>\n<li><strong>Example<\/strong>: calculate_average, format_data, process_input.<\/li>\n<li>Function names should describe the action or purpose of the function.<\/li>\n<\/ul>\n<h4><strong><b>Constant Names:<\/b><\/strong><\/h4>\n<ul>\n<li>Use uppercase letters with underscores (UPPER_CASE).<\/li>\n<li><strong>Example<\/strong>: MAX_ITERATIONS, PI_VALUE, DEFAULT_TIMEOUT.<\/li>\n<li>Constants are variables whose values should not be changed during the execution of the program. They are typically defined at the module level and used throughout the program.<\/li>\n<\/ul>\n<h4><strong><b>Class Names:<\/b><\/strong><\/h4>\n<ul>\n<li>Use CamelCase (CapWords).<\/li>\n<li><strong>Example<\/strong>: UserProfile, CustomerAccount, EmployeeDetails.<\/li>\n<li>Class names should start with a capital letter and capitalize the first letter of each subsequent word.<\/li>\n<\/ul>\n<h4><strong><b>Module Names:<\/b><\/strong><\/h4>\n<ul>\n<li>Use lowercase letters with underscores (snake_case).<\/li>\n<li><strong>Example<\/strong>: data_processing.py, utility_functions.py, config_settings.py.<\/li>\n<li>Module names should be descriptive and reflect the functionality or purpose of the module.<\/li>\n<\/ul>\n<h4><strong><b>Package Names:<\/b><\/strong><\/h4>\n<ul>\n<li>Use lowercase letters without underscores.<\/li>\n<li><strong>Example<\/strong>: numpy, matplotlib, requests.<\/li>\n<li>Package names should be short and clear, avoiding unnecessary abbreviations.<\/li>\n<\/ul>\n<h4><strong><b>Method Names:<\/b><\/strong><\/h4>\n<ul>\n<li>Use lowercase letters with underscores (snake_case).<\/li>\n<li><strong>Example<\/strong>: calculate_total, validate_input, generate_report.<\/li>\n<li>Method names should describe the action or purpose of the method.<\/li>\n<\/ul>\n<h4><strong><b>Private Names:<\/b><\/strong><\/h4>\n<ul>\n<li>Prefix with a single underscore (_) for internal use.<\/li>\n<li><strong>Example<\/strong>: _internal_data, _helper_function.<\/li>\n<li>Private names are intended for internal use within a module or class and should not be accessed directly from outside.<\/li>\n<\/ul>\n<h4><strong><b>Public Names:<\/b><\/strong><\/h4>\n<ul>\n<li>Names without leading underscores are public.<\/li>\n<li><strong>Example<\/strong>: public_variable, public_method.<\/li>\n<li>Public names are accessible from outside the module or class and should be descriptive and clear.<\/li>\n<\/ul>\n<h4><strong><b>Avoid Reserved Words:<\/b><\/strong><\/h4>\n<ul>\n<li>Do not use reserved words or built-in function names as identifiers.<\/li>\n<li>Reserved words include keywords like if, for, while, etc., and built-in function names like print, sum, len, etc.<\/li>\n<li>Following these naming conventions ensures consistency and readability in your Python code, making it easier to understand and maintain.<\/li>\n<\/ul>\n<h3><strong><b>General Rules for Naming Conventions in Python:<\/b><\/strong><\/h3>\n<p>General rules for naming conventions in Python include:<\/p>\n<h4><strong><b>Be Clear and Descriptive:<\/b><\/strong><\/h4>\n<ul>\n<li>Use names that clearly describe the purpose of variables, functions, etc.<\/li>\n<\/ul>\n<h4><strong><b>Follow Style Guidelines:<\/b><\/strong><\/h4>\n<ul>\n<li>Stick to the recommended style guidelines like <a href=\"https:\/\/pep8.org\/\" target=\"_blank\" rel=\"noopener\">PEP 8 <\/a>for consistency.<\/li>\n<\/ul>\n<h4><strong><b>Use Lowercase with Underscores for Variables:<\/b><\/strong><\/h4>\n<ul>\n<li>Use lowercase letters with underscores (snake_case) for variables and functions.<\/li>\n<\/ul>\n<h4><strong><b>Use CamelCase for Classes:<\/b><\/strong><\/h4>\n<ul>\n<li>Use CamelCase (CapWords) for class names, starting with a capital letter.<\/li>\n<\/ul>\n<h4><strong><b>Uppercase for Constants:<\/b><\/strong><\/h4>\n<ul>\n<li>Use uppercase letters with underscores (UPPER_CASE) for constant names.<\/li>\n<\/ul>\n<h4><strong><b>Avoid Single Letters:<\/b><\/strong><\/h4>\n<ul>\n<li>Avoid using single letters except for loop iterators; use descriptive names instead.<\/li>\n<\/ul>\n<h4><strong><b>Be Brief but Clear:<\/b><\/strong><\/h4>\n<ul>\n<li>Keep names short yet descriptive, avoiding unnecessary words.<\/li>\n<\/ul>\n<h4><strong><b>Use Prefixes or Suffixes:<\/b><\/strong><\/h4>\n<ul>\n<li>Use prefixes or suffixes to differentiate between related variables or functions.<\/li>\n<\/ul>\n<h4><strong><b>\u00a0<\/b><\/strong><strong><b>Avoid Reserved Words:<\/b><\/strong><\/h4>\n<ul>\n<li>Do not use reserved words or built-in function names as identifiers to prevent conflicts and confusion.<\/li>\n<\/ul>\n<h4><strong><b>Stay Consistent:<\/b><\/strong><\/h4>\n<ul>\n<li>Stick to the same conventions throughout your code for clarity.<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">Ready to take your python programming skills to the next level? Sign up for a free demo today!<\/a><\/strong><\/p>\n<h3><strong><b>D<\/b><\/strong><strong><b>ifferent <\/b><\/strong><strong><b>S<\/b><\/strong><strong><b>tyles of <\/b><\/strong><strong><b>P<\/b><\/strong><strong><b>ython <\/b><\/strong><strong><b>C<\/b><\/strong><strong><b>onvention <\/b><\/strong><strong><b>N<\/b><\/strong><strong><b>aming<\/b><\/strong><strong><b>:<\/b><\/strong><\/h3>\n<p>Python supports various naming conventions, each serving different purposes and preferences. Here are some common styles:<\/p>\n<h4><strong><b>snake_case:<\/b><\/strong><\/h4>\n<ul>\n<li>Lowercase letters with underscores between words.<\/li>\n<li>Example: my_variable, calculate_average.<\/li>\n<\/ul>\n<h4><strong><b>CamelCase:<\/b><\/strong><\/h4>\n<ul>\n<li>Words are joined without spaces, and each word&#8217;s initial letter, except the first one, is capitalized.<\/li>\n<li><strong>Example<\/strong>: myVariable, calculateAverage.<\/li>\n<\/ul>\n<h4><strong><b>UPPER_CASE:<\/b><\/strong><\/h4>\n<ul>\n<li>All letters are capitalized, and words are separated by underscores.<\/li>\n<li>Typically used for constants.<\/li>\n<li><strong>Example<\/strong>: MAX_ITERATIONS, DEFAULT_TIMEOUT.<\/li>\n<\/ul>\n<h4><strong><b>CapWords:<\/b><\/strong><\/h4>\n<ul>\n<li>Similar to CamelCase, but each word starts with a capital letter.<\/li>\n<li>Often used for class names.<\/li>\n<li><strong>Example<\/strong>: MyClass, CalculateAverage.<\/li>\n<\/ul>\n<h4><strong><b>PascalCase:<\/b><\/strong><\/h4>\n<ul>\n<li>Similar to CamelCase, but the first letter of the first word is also capitalized.<\/li>\n<li><strong>Example<\/strong>: MyVariable, CalculateAverage.<\/li>\n<\/ul>\n<h4><strong><b>kebab-case:<\/b><\/strong><\/h4>\n<ul>\n<li>Words are separated by hyphens.<\/li>\n<li>Not commonly used in Python but sometimes seen in web development.<\/li>\n<li><strong>Example<\/strong>: my-variable, calculate-average.<\/li>\n<\/ul>\n<h3><strong><b>Advantages of Python Naming Conventions:<\/b><\/strong><\/h3>\n<h4><strong><b>Easy to Understand:<\/b><\/strong><\/h4>\n<ul>\n<li>Consistent naming makes code easier to read and understand, reducing confusion.<\/li>\n<\/ul>\n<h4><strong><b>Clear and Descriptive:<\/b><\/strong><\/h4>\n<ul>\n<li>Descriptive names clarify the purpose of code elements, making intentions clear.<\/li>\n<\/ul>\n<h4><strong><b>Consistency Across Projects:<\/b><\/strong><\/h4>\n<ul>\n<li>Following conventions ensures uniformity, helping developers navigate codebases smoothly.<\/li>\n<\/ul>\n<h4><strong><b>Simplified Maintenance:<\/b><\/strong><\/h4>\n<ul>\n<li>Clear names simplify code updates, debugging, and refactoring tasks.<\/li>\n<\/ul>\n<h4><strong><b>Fewer Errors:<\/b><\/strong><\/h4>\n<ul>\n<li>Meaningful names reduce mistakes, improving overall code quality.<\/li>\n<\/ul>\n<h4><strong><b>Adaptability and Growth:<\/b><\/strong><\/h4>\n<ul>\n<li>Well-defined conventions support scalability and accommodate changes without sacrificing clarity.<\/li>\n<\/ul>\n<h4><strong><b>Better Communication:<\/b><\/strong><\/h4>\n<ul>\n<li>Naming conventions act as documentation, aiding communication among developers.<\/li>\n<\/ul>\n<h3><strong><b>Limitations of Python Naming Convention:<\/b><\/strong><\/h3>\n<h4><strong><b>Limited Characters:<\/b><\/strong><\/h4>\n<ul>\n<li>Only ASCII characters are allowed, which can be limiting for non-English symbols.<\/li>\n<\/ul>\n<h4><strong><b>Not Always Clear:<\/b><\/strong><\/h4>\n<ul>\n<li>Some cases, like CamelCase, may not be easy for everyone to understand.<\/li>\n<\/ul>\n<h4><strong><b>Less Creative:<\/b><\/strong><\/h4>\n<ul>\n<li>There&#8217;s less room for creativity compared to languages with broader naming options.<\/li>\n<\/ul>\n<h4><strong><b>Personal Preference:<\/b><\/strong><\/h4>\n<ul>\n<li>Choosing a convention can be subjective and vary among developers.<\/li>\n<\/ul>\n<h4><strong><b>Renaming Challenges:<\/b><\/strong><\/h4>\n<ul>\n<li>Changing conventions in existing code can be difficult and time-consuming.<\/li>\n<\/ul>\n<h4><strong><b>Not Always Compatible:<\/b><\/strong><\/h4>\n<ul>\n<li>Convention cases may not match those of other languages, causing inconsistencies.<\/li>\n<\/ul>\n<h2><strong><b>Conclusion<\/b><\/strong><\/h2>\n<p>We have discussed various python naming conventions. The rules and guidelines to be followed while using them. Its advantages and limitations.<\/p>\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">Ready to take your python programming skills to the next level? Sign up for a free demo today!<\/a><\/strong><\/p>\n<div>\n<table>\n<tbody>\n<tr>\n<td colspan=\"2\"><strong>Related Article<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong><a href=\"https:\/\/entri.app\/blog\/sorting-techniques-in-python\/\" target=\"_blank\" rel=\"noopener\">Sorting Techniques in Python<\/a><\/strong><\/td>\n<td><strong>\u00a0<a href=\"https:\/\/entri.app\/blog\/python-or-javascript-which-should-you-learn-as-a-beginner\/\" target=\"_blank\" rel=\"noopener\">Python or JavaScript Which Should You Learn as a Beginner<\/a><\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong><a href=\"https:\/\/entri.app\/blog\/difference-between-list-and-tuple-in-python\/\" target=\"_blank\" rel=\"noopener\">Difference Between List and Tuple in Python<\/a><\/strong><\/td>\n<td><strong>\u00a0<a href=\"https:\/\/entri.app\/blog\/python-program-to-convert-decimal-to-binary-number\/\" target=\"_blank\" rel=\"noopener\">Python Program to Convert Decimal to Binary Number<\/a><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Naming conventions are rules for giving names to things in Python. They help make your code easier to understand and work with. By following these rules, you can make sure that your variables, functions, and other parts of your code have names that make sense and are easy to read. This article is about \u201cPython [&hellip;]<\/p>\n","protected":false},"author":42,"featured_media":25579052,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[802,1903,1841,1888],"tags":[],"class_list":["post-25579049","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-coding","category-entri-skilling","category-python-programming"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Naming Convention in Python :Experts Guide<\/title>\n<meta name=\"description\" content=\"Naming conventions are rules for giving names to things in Python. This article is about Python Naming Convention. Click to Read More!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/blog\/python-naming-conventions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Naming Convention in Python :Experts Guide\" \/>\n<meta property=\"og:description\" content=\"Naming conventions are rules for giving names to things in Python. This article is about Python Naming Convention. Click to Read More!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/blog\/python-naming-conventions\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/entri.me\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-21T02:01:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-25T10:59:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"615\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Famida\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@entri_app\" \/>\n<meta name=\"twitter:site\" content=\"@entri_app\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Famida\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/\"},\"author\":{\"name\":\"Famida\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/8cc8d87d6cbc05e0ca8e6a1113a8b419\"},\"headline\":\"Python Naming Convention: Updated Guide!\",\"datePublished\":\"2024-03-21T02:01:44+00:00\",\"dateModified\":\"2024-03-25T10:59:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/\"},\"wordCount\":1000,\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png\",\"articleSection\":[\"Articles\",\"Coding\",\"Entri Skilling\",\"Python Programming\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/\",\"url\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/\",\"name\":\"Naming Convention in Python :Experts Guide\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png\",\"datePublished\":\"2024-03-21T02:01:44+00:00\",\"dateModified\":\"2024-03-25T10:59:16+00:00\",\"description\":\"Naming conventions are rules for giving names to things in Python. This article is about Python Naming Convention. Click to Read More!\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/blog\/python-naming-conventions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/#primaryimage\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png\",\"width\":820,\"height\":615,\"caption\":\"Python Naming Convention Updated Guide!\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/blog\/python-naming-conventions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Programming\",\"item\":\"https:\/\/entri.app\/blog\/category\/python-programming\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python Naming Convention: Updated Guide!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/blog\/#website\",\"url\":\"https:\/\/entri.app\/blog\/\",\"name\":\"Entri Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/blog\/#organization\",\"name\":\"Entri App\",\"url\":\"https:\/\/entri.app\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"width\":989,\"height\":446,\"caption\":\"Entri App\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/entri.me\/\",\"https:\/\/x.com\/entri_app\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/8cc8d87d6cbc05e0ca8e6a1113a8b419\",\"name\":\"Famida\",\"description\":\"Famida is an experienced educator with over a decade of teaching experience, specializing in grades 8 to 12, business management (BBM), and electronics engineering. Holding a Master's degree in Electronics and Communication Engineering, she has also trained interns in IoT. For the past four years, Famida has been writing articles for Entri, focusing on exam preparation tips, question papers, and study plans. She also creates practice questions for the Entri app and provides support to users. Additionally, Famida's writing skills extend to parenting and personal blogs, as well as curriculum development.\",\"sameAs\":[\"https:\/\/amuslimpreschoolershome.blogspot.com\/\",\"https:\/\/www.linkedin.com\/in\/famida-ahamad-4736a856\/\"],\"url\":\"https:\/\/entri.app\/blog\/author\/famida\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Naming Convention in Python :Experts Guide","description":"Naming conventions are rules for giving names to things in Python. This article is about Python Naming Convention. Click to Read More!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/entri.app\/blog\/python-naming-conventions\/","og_locale":"en_US","og_type":"article","og_title":"Naming Convention in Python :Experts Guide","og_description":"Naming conventions are rules for giving names to things in Python. This article is about Python Naming Convention. Click to Read More!","og_url":"https:\/\/entri.app\/blog\/python-naming-conventions\/","og_site_name":"Entri Blog","article_publisher":"https:\/\/www.facebook.com\/entri.me\/","article_published_time":"2024-03-21T02:01:44+00:00","article_modified_time":"2024-03-25T10:59:16+00:00","og_image":[{"width":820,"height":615,"url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png","type":"image\/png"}],"author":"Famida","twitter_card":"summary_large_image","twitter_creator":"@entri_app","twitter_site":"@entri_app","twitter_misc":{"Written by":"Famida","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/#article","isPartOf":{"@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/"},"author":{"name":"Famida","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/8cc8d87d6cbc05e0ca8e6a1113a8b419"},"headline":"Python Naming Convention: Updated Guide!","datePublished":"2024-03-21T02:01:44+00:00","dateModified":"2024-03-25T10:59:16+00:00","mainEntityOfPage":{"@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/"},"wordCount":1000,"publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"image":{"@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png","articleSection":["Articles","Coding","Entri Skilling","Python Programming"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/","url":"https:\/\/entri.app\/blog\/python-naming-conventions\/","name":"Naming Convention in Python :Experts Guide","isPartOf":{"@id":"https:\/\/entri.app\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/#primaryimage"},"image":{"@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png","datePublished":"2024-03-21T02:01:44+00:00","dateModified":"2024-03-25T10:59:16+00:00","description":"Naming conventions are rules for giving names to things in Python. This article is about Python Naming Convention. Click to Read More!","breadcrumb":{"@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/blog\/python-naming-conventions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/#primaryimage","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2024\/03\/Python-Naming-Convention-Updated-Guide.png","width":820,"height":615,"caption":"Python Naming Convention Updated Guide!"},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/blog\/python-naming-conventions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Programming","item":"https:\/\/entri.app\/blog\/category\/python-programming\/"},{"@type":"ListItem","position":3,"name":"Python Naming Convention: Updated Guide!"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/blog\/#website","url":"https:\/\/entri.app\/blog\/","name":"Entri Blog","description":"","publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/blog\/#organization","name":"Entri App","url":"https:\/\/entri.app\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","width":989,"height":446,"caption":"Entri App"},"image":{"@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/entri.me\/","https:\/\/x.com\/entri_app"]},{"@type":"Person","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/8cc8d87d6cbc05e0ca8e6a1113a8b419","name":"Famida","description":"Famida is an experienced educator with over a decade of teaching experience, specializing in grades 8 to 12, business management (BBM), and electronics engineering. Holding a Master's degree in Electronics and Communication Engineering, she has also trained interns in IoT. For the past four years, Famida has been writing articles for Entri, focusing on exam preparation tips, question papers, and study plans. She also creates practice questions for the Entri app and provides support to users. Additionally, Famida's writing skills extend to parenting and personal blogs, as well as curriculum development.","sameAs":["https:\/\/amuslimpreschoolershome.blogspot.com\/","https:\/\/www.linkedin.com\/in\/famida-ahamad-4736a856\/"],"url":"https:\/\/entri.app\/blog\/author\/famida\/"}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25579049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/comments?post=25579049"}],"version-history":[{"count":4,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25579049\/revisions"}],"predecessor-version":[{"id":25579603,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25579049\/revisions\/25579603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media\/25579052"}],"wp:attachment":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media?parent=25579049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/categories?post=25579049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/tags?post=25579049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}