Free check
Are you ready for AI Engineer?
Question 1 · Variables, types, and operators
What is the value of
7 // 2?Question 2 · Conditions and loops
Which numbers does
range(1, 5)produce?Question 3 · Functions
A function prints a value but has no
return. What does calling it give back?Question 4 · Lists, dictionaries, and comprehensions
price = {'Earbuds': 1999}. Which line returns 0 instead of raising an error for a missing key?Question 5 · Errors and exceptions
Which exception does
int("abc")raise?Question 6 · pandas basics: Series and DataFrames
How do you get the number of rows and columns of a DataFrame
df?Question 7 · Selecting columns and rows: loc and iloc
Which line selects the
product_nameandpricecolumns fromproducts?Question 8 · Sorting and adding columns
You run
products.sort_values("price")on its own line. What happens toproducts?Question 9 · Filtering DataFrames
Which line keeps rows where
ais greater than 1 andbis less than 5?Question 10 · groupby and aggregation
In
df.groupby("city"), what's the difference between.size()and["email"].count()?