{"id":2269,"date":"2025-12-12T09:49:46","date_gmt":"2025-12-12T09:49:46","guid":{"rendered":"https:\/\/itxperts.co.in\/blog\/?p=2269"},"modified":"2026-01-11T08:57:42","modified_gmt":"2026-01-11T08:57:42","slug":"python-basics-complete-revision-notes-9th-ai","status":"publish","type":"post","link":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/","title":{"rendered":"Python Basics: Complete Revision Notes 9th-AI"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">1. Python File Extension<\/h2>\n\n\n\n<p>Python programs are saved with the <strong>.py<\/strong> extension. When you create a Python file, always name it something like <code>program.py<\/code> or <code>calculator.py<\/code>.<\/p>\n\n\n\n<p><strong>Remember:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Correct: <code>myprogram.py<\/code><\/li>\n\n\n\n<li>Incorrect: <code>myprogram.python<\/code>, <code>myprogram.pt<\/code><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">2. Operators and Order of Operations<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Arithmetic Operators<\/h3>\n\n\n\n<p>Python follows the <strong>PEMDAS\/BODMAS<\/strong> rule for order of operations:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Parentheses\/Brackets<\/strong> \u2013 ()<\/li>\n\n\n\n<li><strong>Exponentiation<\/strong> \u2013 **<\/li>\n\n\n\n<li><strong>Multiplication &amp; Division<\/strong> \u2013 *, \/, \/\/, %<\/li>\n\n\n\n<li><strong>Addition &amp; Subtraction<\/strong> \u2013 +, &#8211;<\/li>\n<\/ul>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(10 + 5 * 2)  # Output: 20\n# Multiplication happens first: 5 * 2 = 10\n# Then addition: 10 + 10 = 20\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Important Operators<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Operator<\/th><th>Purpose<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>+<\/code><\/td><td>Addition<\/td><td><code>5 + 3 = 8<\/code><\/td><\/tr><tr><td><code>-<\/code><\/td><td>Subtraction<\/td><td><code>5 - 3 = 2<\/code><\/td><\/tr><tr><td><code>*<\/code><\/td><td>Multiplication<\/td><td><code>5 * 3 = 15<\/code><\/td><\/tr><tr><td><code>\/<\/code><\/td><td>Division (with decimal)<\/td><td><code>5 \/ 2 = 2.5<\/code><\/td><\/tr><tr><td><code>\/\/<\/code><\/td><td>Floor Division (integer)<\/td><td><code>5 \/\/ 2 = 2<\/code><\/td><\/tr><tr><td><code>%<\/code><\/td><td>Modulus (remainder)<\/td><td><code>5 % 2 = 1<\/code><\/td><\/tr><tr><td><code>**<\/code><\/td><td>Exponentiation (power)<\/td><td><code>5 ** 2 = 25<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Key Difference: \/ vs \/\/<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>\/<\/code> (Division)<\/strong>: Gives the complete answer with decimals <code>print(7 \/ 2) # Output: 3.5<\/code><\/li>\n\n\n\n<li><strong><code>\/\/<\/code> (Floor Division)<\/strong>: Gives only the whole number part <code>print(7 \/\/ 2) # Output: 3<\/code><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3. Data Types in Python<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Boolean Data Type (bool)<\/h3>\n\n\n\n<p>The <strong>bool<\/strong> data type stores only two values:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>True<\/code><\/li>\n\n\n\n<li><code>False<\/code><\/li>\n<\/ul>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>is_student = True\nis_adult = False\nprint(5 &gt; 3)  # Output: True\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Common Data Types Summary<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Data Type<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>int<\/code><\/td><td>Whole numbers<\/td><td><code>10, -5, 0<\/code><\/td><\/tr><tr><td><code>float<\/code><\/td><td>Decimal numbers<\/td><td><code>3.14, -0.5<\/code><\/td><\/tr><tr><td><code>str<\/code><\/td><td>Text\/String<\/td><td><code>\"Hello\", 'Python'<\/code><\/td><\/tr><tr><td><code>bool<\/code><\/td><td>True\/False<\/td><td><code>True, False<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">4. Essential Python Functions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">The print() Function<\/h3>\n\n\n\n<p>Used to display output on the screen.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Hello World\")\nprint(10 + 5)\nprint(\"Sum:\", 15)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Variables<\/h3>\n\n\n\n<p>A <strong>variable<\/strong> is a named memory location that stores data.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Rahul\"\nage = 15\nmarks = 95.5\nis_passed = True\n<\/code><\/pre>\n\n\n\n<p><strong>Rules for Variable Names:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Can contain letters, numbers, and underscores<\/li>\n\n\n\n<li>Must start with a letter or underscore<\/li>\n\n\n\n<li>Case-sensitive (<code>Name<\/code> and <code>name<\/code> are different)<\/li>\n\n\n\n<li>No spaces allowed<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Type Conversion Functions<\/h3>\n\n\n\n<p><strong>int()<\/strong> &#8211; Converts to integer<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>num = int(\"25\")  # Converts string \"25\" to integer 25\nx = int(3.9)     # Converts float 3.9 to integer 3\n<\/code><\/pre>\n\n\n\n<p><strong>Other conversion functions:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>float()<\/code> &#8211; Converts to decimal number<\/li>\n\n\n\n<li><code>str()<\/code> &#8211; Converts to string<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">5. Python Syntax Rules<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Case Sensitivity<\/h3>\n\n\n\n<p>Python is <strong>case-sensitive<\/strong>, meaning uppercase and lowercase letters are treated differently.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Name = \"John\"\nname = \"Jane\"\nprint(Name)  # Output: John\nprint(name)  # Output: Jane\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Comments<\/h3>\n\n\n\n<p>The <strong>#<\/strong> symbol is used for single-line comments.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># This is a comment\nprint(\"Hello\")  # This is also a comment\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Indentation<\/h3>\n\n\n\n<p><strong>Indentation<\/strong> (spaces at the beginning of a line) is used to define a <strong>block of code<\/strong> in Python.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if age &gt;= 18:\n    print(\"You can vote\")  # This line is indented\n    print(\"Welcome!\")      # This line is also indented\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">6. Taking User Input<\/h2>\n\n\n\n<p>Use the <code>input()<\/code> function to get input from users:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = input(\"Enter your name: \")\nage = int(input(\"Enter your age: \"))  # Convert to integer\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">7. Sample Programs You Must Practice<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Program 1: Sum of Two Numbers<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Taking input from user\nnum1 = int(input(\"Enter first number: \"))\nnum2 = int(input(\"Enter second number: \"))\n\n# Calculating sum\nsum = num1 + num2\n\n# Displaying output\nprint(\"Sum =\", sum)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Program 2: Simple Interest Calculator<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Input\nprincipal = float(input(\"Enter principal amount: \"))\nrate = float(input(\"Enter rate of interest: \"))\ntime = float(input(\"Enter time period (years): \"))\n\n# Calculate Simple Interest\nsimple_interest = (principal * rate * time) \/ 100\n\n# Output\nprint(\"Simple Interest =\", simple_interest)\n<\/code><\/pre>\n\n\n\n<p><strong>Formula:<\/strong> SI = (P \u00d7 R \u00d7 T) \/ 100<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Program 3: Check Even or Odd Number<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Input\nnumber = int(input(\"Enter a number: \"))\n\n# Check if even or odd\nif number % 2 == 0:\n    print(number, \"is Even\")\nelse:\n    print(number, \"is Odd\")\n<\/code><\/pre>\n\n\n\n<p><strong>Logic:<\/strong> If a number is divisible by 2 (remainder is 0), it&#8217;s even. Otherwise, it&#8217;s odd.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Program 4: Voting Eligibility Checker<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Input\nage = int(input(\"Enter your age: \"))\n\n# Check eligibility using simple if statement\nif age &gt;= 18:\n    print(\"You are eligible to vote\")\nif age &lt; 18:\n    print(\"You are not eligible to vote\")\n<\/code><\/pre>\n\n\n\n<p><strong>Note:<\/strong> Voting age in India is 18 years.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Quick Revision Checklist<\/h2>\n\n\n\n<p>make sure you can:<\/p>\n\n\n\n<p>\u2705 Write the correct Python file extension (.py)<br>\u2705 Calculate expressions using BODMAS rule<br>\u2705 Identify data types (int, float, str, bool)<br>\u2705 Know all arithmetic operators, especially ** and \/\/<br>\u2705 Use print() to display output<br>\u2705 Create and use variables<br>\u2705 Convert strings to integers using int()<br>\u2705 Write comments using #<br>\u2705 Use proper indentation in if statements<br>\u2705 Take input from users using input()<br>\u2705 Write programs for: sum, simple interest, even\/odd, voting eligibility<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes to Avoid<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Forgetting to convert input()<\/strong>: <code>input()<\/code> always returns a string, so convert it to int or float when needed.<\/li>\n\n\n\n<li><strong>Incorrect operator<\/strong>: Use <code>**<\/code> for power, not <code>^<\/code><\/li>\n\n\n\n<li><strong>Wrong division operator<\/strong>: Remember the difference between <code>\/<\/code> and <code>\/\/<\/code><\/li>\n\n\n\n<li><strong>Indentation errors<\/strong>: Always indent code inside if statements properly<\/li>\n\n\n\n<li><strong>Case sensitivity<\/strong>: <code>print<\/code> and <code>Print<\/code> are different in Python<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Practice Tips<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Write code by hand<\/strong> &#8211; Practice writing programs on paper<\/li>\n\n\n\n<li><strong>Run programs<\/strong> &#8211; Type and execute each program on your computer<\/li>\n\n\n\n<li><strong>Modify examples<\/strong> &#8211; Change values and see what happens<\/li>\n\n\n\n<li><strong>Solve previous papers<\/strong> &#8211; Practice similar questions<\/li>\n\n\n\n<li><strong>Understand logic<\/strong> &#8211; Don&#8217;t just memorize, understand why the code works<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Introduction 1. Python File Extension Python programs are saved with the .py extension. When you create a Python file, always name it something like program.py or calculator.py. Remember: 2. Operators and Order of Operations Arithmetic Operators Python follows the PEMDAS\/BODMAS rule for order of operations: Example: Important Operators Operator Purpose Example + Addition 5 + [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2270,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"googlesitekit_rrm_CAow44u0DA:productID":"","footnotes":""},"categories":[209],"tags":[153],"class_list":["post-2269","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-subject-specific-skills","tag-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Basics: Complete Revision Notes 9th-AI - Itxperts<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Basics: Complete Revision Notes 9th-AI - Itxperts\" \/>\n<meta property=\"og:description\" content=\"Introduction 1. Python File Extension Python programs are saved with the .py extension. When you create a Python file, always name it something like program.py or calculator.py. Remember: 2. Operators and Order of Operations Arithmetic Operators Python follows the PEMDAS\/BODMAS rule for order of operations: Example: Important Operators Operator Purpose Example + Addition 5 + [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/\" \/>\n<meta property=\"og:site_name\" content=\"Itxperts\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/itxperts.co.in\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-12T09:49:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-11T08:57:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python-1024x576.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"@mritxperts\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"@mritxperts\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/\"},\"author\":{\"name\":\"@mritxperts\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6\"},\"headline\":\"Python Basics: Complete Revision Notes 9th-AI\",\"datePublished\":\"2025-12-12T09:49:46+00:00\",\"dateModified\":\"2026-01-11T08:57:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/\"},\"wordCount\":478,\"publisher\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python.png\",\"keywords\":[\"Python\"],\"articleSection\":[\"Subject Specific Skills\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/\",\"url\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/\",\"name\":\"Python Basics: Complete Revision Notes 9th-AI - Itxperts\",\"isPartOf\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python.png\",\"datePublished\":\"2025-12-12T09:49:46+00:00\",\"dateModified\":\"2026-01-11T08:57:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#primaryimage\",\"url\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python.png\",\"contentUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python.png\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/itxperts.co.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Basics: Complete Revision Notes 9th-AI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#website\",\"url\":\"https:\/\/itxperts.co.in\/blog\/\",\"name\":\"Itxperts\",\"description\":\"Leading Website Design Company in Madhya Pradesh\",\"publisher\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#organization\"},\"alternateName\":\"Itxperts | Website Development in Madhya Pradesh\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/itxperts.co.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#organization\",\"name\":\"Itxperts\",\"alternateName\":\"Leading Website Design Company in Madhya Pradesh \u2013 Itxperts\",\"url\":\"https:\/\/itxperts.co.in\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png\",\"contentUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png\",\"width\":512,\"height\":512,\"caption\":\"Itxperts\"},\"image\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/itxperts.co.in\",\"https:\/\/www.linkedin.com\/company\/itxpertsshivpuri\/\",\"https:\/\/www.instagram.com\/itxperts.co.in\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6\",\"name\":\"@mritxperts\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g\",\"caption\":\"@mritxperts\"},\"description\":\"I am a full-stack web developer from India with over 8 years of experience in building dynamic and responsive web solutions. Specializing in both front-end and back-end development, I have a passion for creating seamless digital experiences. When I'm not coding, I enjoy sharing insights and tutorials on the latest web technologies, helping fellow developers stay ahead in the ever-evolving tech landscape.\",\"sameAs\":[\"https:\/\/itxperts.co.in\/blog\"],\"url\":\"https:\/\/itxperts.co.in\/blog\/author\/mritxpertsgmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Basics: Complete Revision Notes 9th-AI - Itxperts","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:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/","og_locale":"en_US","og_type":"article","og_title":"Python Basics: Complete Revision Notes 9th-AI - Itxperts","og_description":"Introduction 1. Python File Extension Python programs are saved with the .py extension. When you create a Python file, always name it something like program.py or calculator.py. Remember: 2. Operators and Order of Operations Arithmetic Operators Python follows the PEMDAS\/BODMAS rule for order of operations: Example: Important Operators Operator Purpose Example + Addition 5 + [&hellip;]","og_url":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/","og_site_name":"Itxperts","article_publisher":"https:\/\/www.facebook.com\/itxperts.co.in","article_published_time":"2025-12-12T09:49:46+00:00","article_modified_time":"2026-01-11T08:57:42+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python-1024x576.png","type":"image\/png"}],"author":"@mritxperts","twitter_card":"summary_large_image","twitter_misc":{"Written by":"@mritxperts","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#article","isPartOf":{"@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/"},"author":{"name":"@mritxperts","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6"},"headline":"Python Basics: Complete Revision Notes 9th-AI","datePublished":"2025-12-12T09:49:46+00:00","dateModified":"2026-01-11T08:57:42+00:00","mainEntityOfPage":{"@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/"},"wordCount":478,"publisher":{"@id":"https:\/\/itxperts.co.in\/blog\/#organization"},"image":{"@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#primaryimage"},"thumbnailUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python.png","keywords":["Python"],"articleSection":["Subject Specific Skills"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/","url":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/","name":"Python Basics: Complete Revision Notes 9th-AI - Itxperts","isPartOf":{"@id":"https:\/\/itxperts.co.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#primaryimage"},"image":{"@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#primaryimage"},"thumbnailUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python.png","datePublished":"2025-12-12T09:49:46+00:00","dateModified":"2026-01-11T08:57:42+00:00","breadcrumb":{"@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#primaryimage","url":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python.png","contentUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/12\/python.png","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/itxperts.co.in\/blog\/python-basics-complete-revision-notes-9th-ai\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itxperts.co.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Basics: Complete Revision Notes 9th-AI"}]},{"@type":"WebSite","@id":"https:\/\/itxperts.co.in\/blog\/#website","url":"https:\/\/itxperts.co.in\/blog\/","name":"Itxperts","description":"Leading Website Design Company in Madhya Pradesh","publisher":{"@id":"https:\/\/itxperts.co.in\/blog\/#organization"},"alternateName":"Itxperts | Website Development in Madhya Pradesh","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itxperts.co.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/itxperts.co.in\/blog\/#organization","name":"Itxperts","alternateName":"Leading Website Design Company in Madhya Pradesh \u2013 Itxperts","url":"https:\/\/itxperts.co.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png","contentUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png","width":512,"height":512,"caption":"Itxperts"},"image":{"@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/itxperts.co.in","https:\/\/www.linkedin.com\/company\/itxpertsshivpuri\/","https:\/\/www.instagram.com\/itxperts.co.in\/"]},{"@type":"Person","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6","name":"@mritxperts","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g","caption":"@mritxperts"},"description":"I am a full-stack web developer from India with over 8 years of experience in building dynamic and responsive web solutions. Specializing in both front-end and back-end development, I have a passion for creating seamless digital experiences. When I'm not coding, I enjoy sharing insights and tutorials on the latest web technologies, helping fellow developers stay ahead in the ever-evolving tech landscape.","sameAs":["https:\/\/itxperts.co.in\/blog"],"url":"https:\/\/itxperts.co.in\/blog\/author\/mritxpertsgmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts\/2269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/comments?post=2269"}],"version-history":[{"count":1,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts\/2269\/revisions"}],"predecessor-version":[{"id":2271,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts\/2269\/revisions\/2271"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/media\/2270"}],"wp:attachment":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/media?parent=2269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/categories?post=2269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/tags?post=2269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}