Python Programming: Basics (Leaving Cert Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Python's two key language characteristics
Python's two key language characteristics
High-level, interpreted
Assignment operator in Python
Assignment operator in Python
= (single equals sign)
Data type for whole numbers
Data type for whole numbers
int (integer)
Data type for decimal numbers
Data type for decimal numbers
float (floating-point number)
Data type for decimal numbers
Data type for decimal numbers
float (floating-point number)
Data type for sequences of characters
Data type for sequences of characters
str (string)
Data type returned by comparison operations
Data type returned by comparison operations
bool (Boolean - True or False)
Data type returned by comparison operations
Data type returned by comparison operations
bool (Boolean - True or False)
// operator function
// operator function
Floor division (divides, then rounds down)
% operator returns
% operator returns
Remainder of division (modulus)
Data type input() always returns
Data type input() always returns
String (str)
Python variable naming convention
Python variable naming convention
snake_case (lowercase with underscores)
