Public flashcard set

Python Basics

20 cards · By Dima

Build a strong Python foundation by learning the most important programming concepts.

Open beautiful study page Study flashcards Sign up free

Flashcards

Variable
A named container that stores a value.
Integer
A whole number data type.
Float
A number with decimal places.
String
A sequence of characters.
Boolean
A value that is either True or False.
List
An ordered, mutable collection of items.
Tuple
An ordered, immutable collection of items.
Dictionary
A collection of key-value pairs.
Set
An unordered collection of unique values.
if
Executes code only when a condition is true.
for
Repeats code over a sequence.
while
Repeats code while a condition remains true.
Function
A reusable block of code.
return
Sends a value back from a function.
import
Loads code from another module.
Class
A blueprint for creating objects.
Object
An instance of a class.
Exception
An error that occurs during program execution.
try / except
Handles exceptions without crashing the program.
Module
A Python file containing reusable code.

Схожі набори