Python Programming Learning Areas Flashcards

1
Q

The Different Learning Sections

A
  1. Objects, Data Structures, & Data Types
  2. Operators
  3. Methods, Functions, & Built-In Function
  4. OPP, Classes & Inheritances
  5. Error & Exception Handling
  6. Decorators & Generators
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

4 Built-In Data Structures

(come back to user-defined data structures at a later date)

A

Built-In Data Structures:

List, Dictionaries, Tuples, Sets,

User Defined Data Structures:

Arrays, Stacks, Queue, Trees, Linked List, Graphs, HashMaps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

5 Data Types in Python

A
  • str: string, text
  • int: integer
  • float: any number any partial numbers (10.5)
  • complex: complex number (24j)
  • bool: boolean
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

3 Control Flow Statements

3 Control Flow Tools

A
  1. for loops
  2. while loops
  3. if…elif…else statement

control flow tools utilized within loops

  1. break
  2. continue
  3. pass
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Different Operators:

Assignment & Boolean

Logical & Membership & Identity

A

Assignment: (=, +=, -=, *=, /=, %=, **=, //=)

Boolean: (==, !=/<>, >, =, <=)

Logical: and, or, not

Membership: in, not in

Identity: is, is not

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Functions v. Methods

A

Functions: block of code to perf. a spec. task

def func_name ( arg1, arg2 ) :

func_body

Method: block fo code assigned to a specfic class, accessible to data contained within the class. Cannot be accessed by objects not a member of the class.

class class_name:

def method_name ( arg1, arg2 ) :

method_body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly