🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 11: FAQ Pair Reshaper

Data Engineer

Builds on these lessons

Current Task

Objective

.reshape() rearranges an array's elements into a new shape, as long as the total element count matches.

Task: reshape a flat 6-element FAQ array into 3 rows of question/answer pairs.

index.py
import numpy as np faqs = np.array(['Q1', 'A1', 'Q2', 'A2', 'Q3', 'A3']) paired = faqs.reshape(3, 2) print(paired)

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview