Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
concatenate
#1
I am trying to concatenate 2 lists (L3 and L4) but L5 does not print any output.
How come?

L=[1,2]
L3=3*L

L4=[k**2 for k in L3]


L5 = L3 + L4 
print(L3)
print(L4)
list(L5)
Reply
#2
on line 10, you have list(L5) instead of print(L5)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Concatenate 3D arrays paul18fr 1 2,589 Apr-09-2021, 02:49 PM
Last Post: paul18fr

Forum Jump:

User Panel Messages

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