Lesson 1: Make the Computer Talk
Coding is telling a computer what to do. Computers are very smart, but they only follow clear instructions.
We use the print() command to make the computer show words on the screen.
print("Hello!")
Python is one of the most popular languages for AI and beginner programming. Below is a super-easy way to help introduce it to your child.
Coding is telling a computer what to do. Computers are very smart, but they only follow clear instructions.
We use the print() command to make the computer show words on the screen.
print("Hello!")
Variables are how computers remember information.
We create variables using the equals sign (=). The variable doesn't have "quotation marks" around it, but the words on the right-side do.
name = "Joe"
The input() command lets the computer ask the user a question.
If you use input() by itself, the computer will ask the question, but it will NOT remember the answer.
input("What is your name? ")
To save the answer, store it in a variable using (=).
name = input("What is your name? ")
We can print words and variables together using commas:
print("Hello", name)
Numbers don't need quotation marks.
age = 10
Python is really great at math!
print(age + 1)