Python Programming: Advanced (Leaving Cert Computer Science): Flashcards

📚Flashcards
Python Programming: Advanced
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

Nested conditionals

One conditional inside another; hierarchical checking

Nested loops

One loop inside another; inner runs fully per outer pass

f-strings in Python

Formatted strings (f"...") with vars in {} replaced by values

Purpose of functions

Encapsulate code into reusable blocks for modularity

Keyword to define a function

def

return vs print in functions

return hands value to caller; print displays on screen

Recursion

Function calls itself to solve smaller instances of same problem

Base case in recursion

Condition where function stops calling itself

Recursive case

Function calls itself with smaller/simpler input

Python error for stack overflow

RecursionError

Explore Leaving Cert Computer Science Revision Notes by Topics

Explore Leaving Cert Computer Science Model Answers by Topics

Explore Leaving Cert Computer Science Exam Questions by Topics

Join 100,000+ Leaving Cert students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.