LearnPy Hub
← Pandas: DataFrames problems
Easy

Build a DataFrame

Read a line of item names and a line of prices. Build a DataFrame with columns item and price, then print the number of rows and the most expensive item.

Input

Two lines of the same length.

Output

Two lines.

Sample 1

Input
pen book bag
10 60 900
Output
3
bag

Sample 2

Input
tea
20
Output
1
tea
solution.py
Output appears here
Build a DataFrame · Python practice problem · LearnPy Hub