Skip to content

andchrlambda/Intro_to_Python

Repository files navigation

Intro to Python

0. Introduction

1. Hello World

  • Input: input()
  • Output: print()

2. Numbers

  • Integer: int
  • Float: float
  • Complex: complex

3. Text: String

  • String: str
  • String Ops: builtin methods

4. Ordered Array: Sequence

  • List: list
  • Tuple: tuple

5. Membership Array: Set

  • Set: set
  • Set Theory Ops: builtin methods
    • .union()
    • .intersection()
    • .difference()
    • .symetric_difference()
  • Membership Testing

6. Associative Array: Dictionary

  • Dictionary: dict
  • Dictionary Ops: builtin methods
    • .get()
    • .pop()
    • .keys()
    • .values()
    • .items()
  • Dictionary Iteration
  • Dictionary Comprehension

7. Control Flow: Imperative

  • Branch: if, elif & else
  • Iterate: for, while
  • Jump: invocation, see Functor

8. Functor: Callable Object

  • Function
  • Method
  • Lambda
  • Higher Order Functor

9. Module

  • Import Styles
  • Module: Python File
  • Package: Folder of Python Files

10. Class Object

  • Instantiation
  • Magic Methods
  • Inheritance
  • Polymorphism
  • Class Scope

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors