Python Programming Fundamentals
Computer Science

Python Programming Fundamentals

35

Terms

0

Plays

0

Favorites
Shares
Description

This study set covers fundamental Python programming concepts. Topics may include data types, control structures, functions, and object-oriented programming.

Top Scores
Show Less
ghost_fill
No players yet
Be the first one to play!
Cards
Show Less
Python

A high-level, interpreted, general-purpose programming language known for its readability and versatility

interpreter

A program that executes code line by line, without needing a separate compilation step

compiler

A program that translates source code into machine code before execution

variables

Named storage locations that hold data values

assignment operator

Used to assign a value to a variable in Python. Example: x = 10

data types

Classifications of data, such as integers, floats, strings, booleans

integer

A whole number (e.g., 10, -5, 0)

float

A number with a decimal point (e.g., 3.14, -2.5)

string

A sequence of characters (e.g., "Hello", 'Python')

boolean

A data type representing truth values: True or False

operators

Symbols that perform operations on values (e.g., +, -, *, /, %, //, **)

modulo operator

Returns the remainder of a division

floor division operator

Returns the integer part of a division

exponentiation operator

Raises a number to a power

conditional statements

Statements that control the flow of execution based on conditions (e.g., if, elif, else)

if statement

Executes a block of code only if a condition is True

elif statement

Checks additional conditions if the preceding if or elif conditions are False

else statement

Executes a block of code if all preceding if and elif conditions are False

loops

Structures that repeat a block of code multiple times

for loop

Iterates over a sequence (e.g., list, string, range)

while loop

Repeats a block of code as long as a condition is True

list

An ordered, mutable (changeable) sequence of items

tuple

An ordered, immutable (unchangeable) sequence of items

dictionary

An unordered collection of key-value pairs

function

A block of reusable code that performs a specific task

function argument

A value passed to a function when it's called

function return value

The value a function sends back after execution

modules

Files containing Python code that can be imported and used in other programs

class

A blueprint for creating objects

object

An instance of a class

object-oriented programming OOP

A programming paradigm based on the concept of "objects", which contain data and methods

inheritance

A mechanism where a class acquires the properties and methods of another class

polymorphism

The ability of an object to take on many forms

encapsulation

Bundling data and methods that operate on that data within a class

exception handling

A mechanism to gracefully handle errors during program execution using try, except, finally blocks