Pseudocode Vs Python Quick Reference (A2)
PSEUDOCODE VS PYTHON QUICK REFERENCE
Pseudocode
Python
DECLARE x : INTEGER
x = 0
IF condition THEN
if condition:
ELSE
else:
ENDIF
(indentation)
FOR i ← 1 TO 10
for i in range(1, 11):
NEXT i
(indentation)
WHILE condition
while condition:
ENDWHILE
(indentation)
REPEAT
while True:
UNTIL condition
if condition: break
OUTPUT "text"
print("text")
INPUT x
x = input()
PROCEDURE name
def name():
FUNCTION name RETURN type
def name():
ARRAY[0:9]
list of size 10
TRUE/FALSE
True/False
Revision #1
Created 2026-03-16 12:22:37 UTC by Samuel Lee
Updated 2026-03-16 12:22:54 UTC by Samuel Lee