Question: I I tried to combine two inputs: one int list, one string list in to a 2D list. However, I can not get the ouput

I I tried to combine two inputs: one int list, one stringlist in to a 2D list. However, I can not get theI

I tried to combine two inputs: one int list, one string list in to a 2D list.

However, I can not get the ouput I want.

333234 333456 333678

It seems like the sep = "" does not work.

>>> input_1=[333, 444,555, 666] >>> label 1=["234","456","678", "891"] >>> demo (input 1, label 1) 333234333456333678333891 444234444456444678444891 555234555456555678555891 666234666456666678666891 def demo (input 1, label 1): for i in input 1: for j in label 1: print (str(i) + j, sep="\t", end = "") print ()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!