GCI Code Library

Output & Print
Basic

Display text and variables to the console using print().

User Input
Basic

Capture keyboard input and convert data types.

Variables
Basic

Working with Integers, Floats, Strings, and Booleans.

Arithmetic
Basic

Math operations: Addition, Subtraction, Division, Modulus.

Conditionals
Logic

Control flow using If, Elif, and Else statements.

Find Min/Max
Logic

Comparing numbers to find the largest or smallest value.

Calculate Average
Math

Summing a list of numbers and dividing by the count.

Loops
Control

Repeating tasks efficiently using For and While loops.

Lists & Arrays
Data

Storing multiple items, accessing indices, and appending.

Strings
Text

Slicing, concatenation, formatting, and casing.

chgiang © 2025