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

11 cards from this deck

Show

Nested conditionals

One conditional statement inside another

Purpose of nested conditionals

Check multiple conditions hierarchically

Nested loops

One loop inside another loop

Functions in Python

Reusable blocks of code that encapsulate operations

Benefits of functions

Makes code modular, readable, easier to maintain

Keyword to define a function in Python

def

Recursion

A function calls itself to solve smaller instances of same problem

Two components of recursive function

Base case and recursive case

Base case in recursion

Condition where function stops calling itself

Recursive case

Where function calls itself with simpler or smaller input

Factorial of nn

Product of all positive integers ≤n\leq n

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

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