Please enable JavaScript.
Coggle requires JavaScript to display documents.
Computer Science Revision 2024 images - Coggle Diagram
Computer Science Revision 2024
-
Else
Else means that if an IF statement has been made that anything other than the IF will result in another output
IF
That it is a statement that causes an output if that statement has been entered into an input and anything other that the desired input will fall under either ELIF or ELSE
Variables
-
A variable is a placeholder for information you want Python to recall later in the coding process when you need to complete an action.
Elif
Elif is very much like IF except you cannot have multiple IF statement in one input so Elif is another version of IF that can only be used after an IF statement
Selection
-
age = int(input("How old are you?"))
if age >= 70: print("You are aged to perfection!")
else: print("You are a spring chicken!")
Nested Selection
Nested IF-THEN-ELSE-ENDIF. Not only can you make selections using the IF construct, you can also put them inside each other!
Iteration
Repeated execution of a set of statements is called iteration. Because iteration is so common, Python provides several language features to make it easier.
Exception Handling
Exception handling is a crucial part of writing solid Python code. It helps developers prepare for and deal with potential errors that might pop up during program execution, ultimately improving the reliability and user experience of the program.
While Loops
For Loops are normally used to count from one number to another and you could have it list every number from 1 to 100 and could also count down and list all numbers from 100 to 1 and is useful for listing all numbers for a program or calculation
Functions
Functions in Python. You use functions in programming to bundle a set of instructions that you want to use repeatedly or that, because of their complexity, are better self-contained in a sub-program and called when needed. That means that a function is a piece of code written to carry out a specified task.
Pseudocode
Pseudocode is a way of expressing an algorithm without conforming to specific syntax rules. By learning to read and write pseudocode, you can easily communicate ideas and concepts to other programmers, even though they may be using completely different languages.