First Introduction
Numbers
At a Crossroads
Random
Random
100

An algorithm is what? 

A precise set of instructions expressed in some language 
100

True or false 

Assignments are not equations 

true assignments are instructions to be exectuted 

100

What is the format for an if statement? 


  

if condition:

     block of statements 

100

What is the difference between = and == 

= is assignment 

== is equals to 

100
give an example of a type error 

adding a string and integer together 

200

To execute a python program you need a? 

Python interpreter

200

true or false you can use expressions in assignments 



true and example would be days = 7 * 31 * 4 +28 

200

print("What’s your name?")

user = input()

print("Hello", user)

change this program so that if their name is Ms. Riccardi it will tell me that I am 25 but if it is someone else it will ask for their age. 

if user == "Ms. Riccardi": 

    print ("you are 25")

else: 

  age = input("what is your age?") 

   print ("you are", age)

200

What is wrong with this variable ? 


3varT= 4

it starts with a number 

200

give an example of a syntax error 

when you forget quotations 
300

What is syntax in Python? and what is a syntax error? 

the syntax is the rules for how python can be assembled. 


Syntax error is when the code has a problem because the rules of python were broken 

300

Provide all the arithmetic operators that you can do with python 

%  

//

**

300

What are all the relational operators in python 

== 

!= 

<= 

>=

300

Are these the same? 

bee = "fun" 

Bee = "fun"

no Bee is a different variable

300

give an example of a name error 

when you forget to define your variables 

400
user = Claude 

print ("hello", user)

What is the syntax error and how do you fix it? 

Claude has no "

400

What would happen if you added these together 

print("a" + "a")

it would output aa 
400

Create a variable store the name freddy in it and write a sentence by calling freddy. 

var = freddy 

print ( var, "is a senior") 


400

Create a program that contains an if statement to say that if you like cookies you are awesome else you suck!

input("do you like cookies?") 

if input =="Yes": 

   print ("you are awesome")

else: 

   print("you suck")

400

true or false we learned about loops last semester - while, for etc? (in python) 


I think false but I am unsure

500
 How can a user interact with a program how do you have to set up your code so they can type on the screen? 


Provide an example 

the input function

user = input("What is your fav color") 


500

provide a type error for string and integer what would it look like in code? 


user = input("What is your favorite number?") 

print(user + 3) 

500

What is the key thing I have to do if I want to use the randint function? 

import random from randint

500

What is wrong with this variable

Lexi Riccardi = "teacher"

there is a space variables cant have spaces 


500

What is ms riccardis birthday, and name of her dog

march 26 and finn