Python Fundamentals and Data Structures

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

flashcard set

Earn XP

Description and Tags

Practice vocabulary flashcards covering fundamental Python concepts, data types, package management, file handling, and data structures.

21 Terms

1
New cards

Tuple

An immutable sequence in Python that can nevertheless contain mutable objects, such as lists.

2
New cards

List comprehension

A structure in Python that allows the creation of a new collection based on an existing one by applying an expression to each element.

3
New cards

os module

A Python Standard Library module used to interact with the operating system, enabling operations such as reading or writing files, deleting files, and running system commands without external installation.

4
New cards

Heap

The data structure most suitable for implementing a priority queue.

5
New cards

pip

The tool used to manage installations and install Python packages from the Python Package Index (PyPI).

6
New cards

'a' mode

The file mode used in Python to append data to an existing file without overwriting its contents.

7
New cards

String literal

A representation of text data in Python that can be enclosed in either single quotes (') or double quotes (").

8
New cards

all()

A built-in Python function that checks if all elements in an iterable are True.

9
New cards

Mutable objects

Objects that can be changed after creation, such as lists and dictionaries.

10
New cards

requirements.txt

The file typically used to list the dependencies of a Python project for installation via pip.

11
New cards

numpy

A Python package commonly used for numerical operations and array manipulations.

12
New cards

init

The method automatically called when an object is created from a class, used to initialize class attributes.

13
New cards

try…except block

A Python construct used to handle exceptions and prevent program crashes.

14
New cards

Balanced Binary Search Tree Search Complexity

The time complexity of searching for an element in a balanced Binary Search Tree (BST), which is O(log⁡n)O(\log n).

15
New cards

pip uninstall

The command used to uninstall an installed Python package using pip.

16
New cards

Recursion

A technique in which a function calls itself to solve a smaller instance of a problem.

17
New cards

Dictionary comprehension

A concise way to create dictionaries in Python using expressions and loops.

18
New cards

zip()

A built-in function in Python that combines elements from multiple iterables into tuples.

19
New cards

with open() statement

A Python statement for file operations that ensures the file is automatically closed after the block of code is executed.

20
New cards

None

A special literal in Python used to represent the absence of a value.

21
New cards

import statement

A statement used to include a module or package in a Python script.