Skip to content

Repository files navigation

Basics-of-Python

Table of Contents

  1. Getting Started
  • [What is Python]
  • [Environment Setup]
  • [Python Syntax]
  • [Hello World]
  • [Printing types][format 'statement']
  • [Keywords and Identifiers]
  • [patterns]
  • [Class Information] ['help' keyword]
  • [Dissambling Methods][dir 'keyword']
  • [Variables]
  • [Namespace]
  • [Escape Sequences]
  • [Access Specifers]
  • [statements and comments]
  • [User Inputs and imports][import,intput,raw_input 'keywords']
  1. Operators

    • [Arithmetic Operators]

      • (+, -, *, /, //, %, **)
    • [Bitwise Operators]

      • (&, |, ^, >>, <<, ~)
    • [Assignment Operators]

      • (=, +=, -=, /=, //=)
    • [Comparison Operator]

      • (==, !=, >, <, >=, <=)
    • [Logical Operators]

      • (and, or, not)
    • [Identity Operators]

      • (is, is not)
    • [Membership Operators]

      • (in, not in)
  2. Data Types

  • [Numbers]

    • (including booleans)
    • int
    • float
    • complex
  • [Strings]

    • capitalize()
    • casefold()
    • center()
    • count()
    • encode()
    • endswith()
    • expandtabs()
    • find()
    • format()
    • format_map()
    • index()
    • isalnum()
    • isalpha()
    • isdecimal()
    • isdigit()
    • isidentifier()
    • islower()
    • isnumeric()
    • isprintable()
    • isspace()
    • istitle()
    • isupper()
    • join()
    • ljust()
    • lower()
    • lstrip()
    • maketrans()
    • partition()
    • replace()
    • rfind()
    • rindex()
    • rjust()
    • rpartition()
    • rsplit()
    • rstrip()
    • split()
    • splitlines()
    • startswith()
    • strip()
    • swapcase()
    • title()
    • translate()
    • upper()
    • zfill()
  • [Lists]

    • append()
    • clear()
    • copy()
    • count()
    • extend()
    • index()
    • insert()
    • pop()
    • remove()
    • reverse()
    • sort()
  • [Tuples]

    • count()
    • index()
  • [Sets]

    • add()
    • clear()
    • copy()
    • difference()
    • difference_update()
    • discard()
    • intersection()
    • intersection_update()
    • isdisjoint()
    • issubset()
    • issuperset()
    • pop()
    • remove()
    • symmetric_difference()
    • symmetric_difference_update()
    • union()
    • update()
  • [Dictionaries]

    • clear()
    • copy()
    • fromkeys()
    • get()
    • items()
    • keys()
    • pop()
    • popitem()
    • setdefault()
    • update()
    • values()
  • [Type Casting]

    • [* int to Others*]
    • [* float to Others*]
    • [* str to Others*]
  1. Control Flow

    • [The if statement]
    • [The for statement]
    • [The while statement]
    • [The break statement]
    • [The continue statement]
    • [The pass statement]
  2. Functions

    • [Function Definition]
    • [Scopes of Variables Inside Functions]
    • [Default Argument Values]
    • [Positional and Keyword Arguments]
    • [Arbitrary Argument Lists] [separate the arguments]
    • [Unpacking Argument Lists] (*args and **kwargs statements)
    • [Lambda Expressions] (lambda statement)
    • [Documentation Strings]
    • [Recursive function] [function calls itself]
    • [Function Annotations]
    • [Function Decorators] [Decorators are use to decorate function eg..

      ...etc]
    • [Simple Main Function]
  3. Classes

    • [Class Definition] (class statement)
    • [Class Objects]
    • [Constructor] [Default and Parameterized]
    • [Destructor] ['del' function]
    • [Class and Instance Variables]
    • [Inheritance]*
    • [Multiple Inheritance]
    • [Polymorphism]
      • Operator Overloading *['Magic Methods' and '+' '**']
      • Method Overloading [same method multiple time with diff parameters]*
      • Method Overriding* [Method Overriding achive in inheritance]
  4. Modules

    • math
    • Random
    • argparser
    • array
    • builtins
    • calendar
    • date
    • time
    • csv
    • json
  5. Errors and Exceptions

    • [Handling Exceptions](try statement)
    • [Raising Exceptions] (raise statement)
    • [Python User-defined Exception]
  6. Files

    • [Reading and Writing and Append](with statement)
    • [Methods of File Objects]
      • buffer
      • close
      • closed
      • encoding
      • errors
      • fileno
      • flush
      • mode
      • name
      • newlines
      • read
      • readable
      • readline
      • readlines
      • seek
      • seekable
      • tell
      • truncate
      • writable
      • write
      • writelines
  7. Additions - [Iterator]

    • [Generators]
    • [Command line Arguments]
    • [Closure]
    • [ListIterator]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages