Vocabulary
Data Type
What Does it Do?
What Comes Next?
100

The exact spelling, symbols and order of the code

Syntax

100

5+2

Integer

100

name = "Harry"

print(name)

Harry

100

Daily Double

number = 6

if number >= 6:

     print("6 it is!")

else:

     print("Cool!")

200

A note that the computer ignores

Comment

200

6.2+1.1

Float

200

age = 12

print(10)

10

200

grade = 77

if grade >=90:

     print("A")

elif grade >77:

     print("B")

else:

     print("D")

D

300

A storage container for information

Variable

300

"Hello World" + " !"

String

300

age = 6 

new_age = age + 2

print(age)

6

300
story = "There was a pig. "


choice = input("A or B?")     #Enters A

if choice == "A":

    story += "The pig went outside"

    print(story)

else:

     story += "The pig went to sleep"

print(story)

There was a pig. The pig went outside

400

When the computer encounters something unexpected

Error

400

Daily Double!


name = input("name: ")

age = int(input("age: "))      #Enters 20

name = age

print(name)

400

greeting = "Hello there"

name = input("What is your name? ") #Enter Harry

print(greeting + " " + name + " " + "How are you?")

Hello there Harry How are you?

400

number = 14

if number == 14:

     number -=10

     if number > 5:

          number += 5

print(number)

4

500

Information that a function needs to know in order to run

Argument

500

int(str(int("8")))+float("6.2")

Float

500

print("Hi")

age = int(input("age: "))   #Enters 10

if age > 10:

     print("Hi there")

else:

     print("Hello there")

Hi

Hello there


500

food = input("Name: ")   #enter cheese

if food == "Cheese":

     print("I see")

else:

     print("Cheese is good!)

Cheese is good!

M
e
n
u