Jupyter Notebook
Variables & Assignment
Data Types & Conversion
Slicing
Fix the Code
100

What is the plain text formatting syntax does Jupyter support?

Markdown

100

What built-in function do you use to display values?

print()
100

What data type supports characters?

String

100

What would the output be for: 

game = "jeopardy"

game[0:4]

jeop

100

print(type(data)

print(type(data))

200

What keyboard shortcut executes a cell?

Shift + Enter

200

What are the 3 essentials parts to creating a variable?

Variable name, "=", and a value

200

What built-in function do you use to find out the type of a value?

type()

200

What would the output be for: 

language = "Spanish"

language[2:]

anish

200

fruit = "lemon'

fruit = "lemon"

or

fruit = 'lemon'

300

Before running code cells, what's the first thing you have to do?

Select Kernel

300

What happens when you execute a code cell with a variable that doesn't exist?

You get a NameError

300

Which data type has a length?

String

300

What would the output be for: 

genre = "country"

genre[:-2]

count
300

count = "20" + 4

count = 20 + 4

400

What two modes do code cells have?

Edit and Command

400

How can you change the value of a variable?

Re-assign the value

400

What data types support subtraction?

Integers and floats

400

What would the output be for: 

country = "Brazil"

country[:]

Brazil

400

print("i","love" "coding)

print("i","love","coding")

500

If you wanted to clear the memory of a notebook, what should you do?

Restart the kernel

500

What format should variable names follow? (3)

lower case letters, digits, and underscore
500

What would the output be for:

8 // 3

2

500

What would the output be for:

height = 165
height[2]

TypeError

500

len(346585793)

len(str(346585793))