fr

Daily Challenge 🗓️

Your daily dose of technical intelligence to shine in (developer) society.

Discover a software development quiz per day with its detailed correction.

Frontend, Backend, Mobile, Data, Web, AI, Infra... Everything that can be coded!

Thursday 25 June 2026

-

Python Machine Learning

Python Machine Learning #8/30

Consider vec, an array created like this

vec = numpy.array([[1,2,3,4],[5,6,7,8]])

What is the result of

vec2 = vec.reshape(2,2,2)

?

Author: W3D TeamStatus: PublishedQuestion passed 1013 times
4
Reviews from developers
developer avatar
Auteur anonyme
02/10/2024
@Équipe W3D. Bonjour, je pense qu'il manque des virgules entre les éléments dans chaque sous-tableau.

About Daily Challenge 🗓️

From Monday to Friday, discover each day a quiz question with its detailed answer to enrich your tech knowledge. The questions are proposed by the WeLoveDevs.com community: experienced developers, trainers and freelancers.WeLoveDevs.com helps developers to find their dream job. We also provide over 50 free technical tests in different technologies for those of you who would like to test your knowledge.

History

    ⚠️
    Your browser is badly|not supported!
    We recommend you to use a more modern browser such as Edge, Chrome or Firefox
    Know More