Day One
Day Two
Day Three
Day Four
Design Process
100

What symbol is used to make single-line comments in your code?

#

100

What does adding \n to your code do?

Tells the code to print onto the next line

100

Which operator lets you test for inequality?

!=

100

Explain the purpose of the randint() function

Allows us to define a range of numbers and returns a random integer from that range

100

Name the major steps in the Design Process

Concept, Implementation, Testing

200

What are these symbols called in programming? //, %, **, +, ==

operators

200
True/False: Quotation marks are used to print variables.

False:

print(variables)

200

What is the other name for an "if statement" in python?

Conditionals

200

What is the purpose of While Loops

While Loops allow us to repeat a line of code and have it executed over and over if the conditional statement is true

200

True/False: Every project needs to go through repeated testing.

True

300

What is the difference between an integer and a floating point number?

An integer can only be a whole number, while floating point numbers can include decimals

300

Write the code to convert data stored in a variable into a string

variable = str(variable)
300

What allows you to have multiple options for your Conditionals?

Elif/Else statements

300

True or False: an else statement can be used at the end of a while loop to dictate what happens when the loop is done repeating.

True!

300

What can you use the Design Process for?

Developing websites, games...anything!

400

How would you comment out multiple lines of code?

' ' ' (Three apostrophes at the beginning and end of your comment)

400

Write one line of code asking a user for their favorite color 

favColor = input("What is your favorite color?")

400

If I wanted to replace every "t" in my string with "e" which string manipulation would I use?

string.replace()

400

True or False: Our while loop can continue to loop even after the conditional statement (hint: what's inside the parentheses) evaluates to false.

False! Our while loops stop repeating as soon as the loop does to start its next repeat and finds that the condition is now false.

400

Pseudocode is a(n) ________ of the code you plan to make

outline

500

A variable must start with a ____ or _____.

letter or underscore character

500

What function would we use to convert from a float to an int?

int()

500

Look at the following line of code:
Word="9"

Write the code that would convert this string variable into the number 9, then add 3 to it.

int(Word) + 3

500

What would this code produce:

import random

num = randint(1, 10)

print(num)

Nothing! This would produce a syntax error instead of printing a random number between 1 and 10. Remember that to use the randint() function we must also use the dot operator to let our compiler know where our function was defined, like so: random.randint()

500

True/False: The implementation step of the design process is where most of our work is done.

True! Consisting of part a, pseudocode, and part b, our actual coding—the implementation step is where we do most of our heavy lifting when we program.

M
e
n
u