Advanced Placement Computer Science Principles exploring computational thinking and programming.
Programming is the process of giving instructions to a computer to perform tasks. These instructions are written in languages that computers understand, like Python or JavaScript.
if
, else if
, and else
.for
or while
statements.A simple program might ask for your name and greet you. It uses variables to store your name and prints a message.
name = input("What's your name?")
print("Hello, " + name + "!")
Programming helps you automate boring tasks, create games, build websites, and much more!
Creating a calculator that adds two numbers.
Making a quiz game that asks questions and checks answers.
Programming is writing instructions for computers to follow using special languages.