0
0
Data Analysis Pythondata~10 mins

Jupyter Notebook setup and usage in Data Analysis Python - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start Jupyter Notebook from the command line.

Data Analysis Python
jupyter [1]
Drag options to blanks, or click blank then click option'
Arun
Bstart
Cnotebook
Dopen
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' or 'start' instead of 'notebook'.
Trying to open Jupyter Notebook without the correct command.
2fill in blank
medium

Complete the code to create a new cell in Jupyter Notebook using keyboard shortcuts.

Data Analysis Python
Press [1] to create a new cell below the current one.
Drag options to blanks, or click blank then click option'
ACtrl + Enter
BB
CA
DShift + Enter
Attempts:
3 left
💡 Hint
Common Mistakes
Pressing 'A' creates a cell above, not below.
Using Shift + Enter runs the cell, not create a new one.
3fill in blank
hard

Fix the error in the code to import pandas in a Jupyter Notebook cell.

Data Analysis Python
import [1] as pd
Drag options to blanks, or click blank then click option'
Anumpy
Bpanadas
Cpd
Dpandas
Attempts:
3 left
💡 Hint
Common Mistakes
Misspelling 'pandas' as 'panadas'.
Trying to import 'pd' directly.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps words to their lengths for words longer than 3 characters.

Data Analysis Python
lengths = {word: [1] for word in words if len(word) [2] 3}
Drag options to blanks, or click blank then click option'
Alen(word)
B<=
C>
Dword
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<=' instead of '>' in the condition.
Mapping word to word instead of word to length.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps uppercase words to their lengths for words with length greater than 4.

Data Analysis Python
result = [1]: [2] for w in words if len(w) [3] 4
Drag options to blanks, or click blank then click option'
Aw.upper()
Blen(w)
C>
Dw.lower()
Attempts:
3 left
💡 Hint
Common Mistakes
Using w.lower() instead of w.upper() for keys.
Using '<' instead of '>' in the condition.