Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Homework with python
#1
It’s a two part question. I’ve figured out the first section but struggling with the second part.

Given 2 inputs, data and shape, construct a tensor(n-dimension matrix) using nested lists.
Data and shape inputs are lists of numbers. Data can be any number (float, int, etc.), but shape needs to be a list of positive integers.


I must do this without importing modules...

Any advice would be appreciated.
Reply
#2
What have you tried?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP in python homework makashito 4 3,932 Oct-12-2021, 10:12 AM
Last Post: buran
  CyperSecurity Using Python HomeWork ward1995 1 1,966 Jul-08-2021, 03:55 PM
Last Post: buran
Exclamation urgent , Python homework alm 2 2,311 May-09-2021, 11:19 AM
Last Post: Yoriz
  Python Homework Help *Urgent GS31 2 2,587 Nov-24-2019, 01:41 PM
Last Post: ichabod801
  Python Homework Question OrcDroid123 1 2,378 Sep-01-2019, 08:44 AM
Last Post: buran
  Python homework / functions sunhyunshine 1 2,460 May-11-2019, 05:37 PM
Last Post: MrTheOne
  python homework help ASAP gk34332 1 2,986 Mar-13-2019, 07:27 PM
Last Post: ichabod801
  Python homework assigment makisha 3 3,290 Feb-28-2019, 10:21 PM
Last Post: Yoriz
  Python Homework Help beepBoop123 2 3,056 Dec-12-2018, 06:25 PM
Last Post: beepBoop123
  python homework MajaW 3 3,176 Dec-11-2018, 10:45 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020