Join the growing community of curious minds on IDNLearn.com. Discover detailed and accurate answers to your questions from our knowledgeable and dedicated community members.
Sagot :
Answer:
list_one=[]
list_two=[]
list_three=[]
str1=input("list_one:")
for i in str1:
if i.isdigit():
i=int(i)
list_one.append(i)
elif i.isalpha():
list_one.append(i)
str2=input("list_two:")
for i in str2:
if i.isdigit():
i=int(i)
list_two.append(i)
elif i.isalpha():
list_two.append(i)
print(list_one)
print(list_two)
if len(list_one)==len(list_two):
for i in range(len(list_one)):
multiply=list_one[i]*list_two[i]
add=str(multiply)
list_three.append(add)
else:
print("Index out of bound")
n=0
for i in list_three:
if i.isdigit():
n+=1
else:
print("The list has some non number values")
print(list_three)
We value your presence here. Keep sharing knowledge and helping others find the answers they need. This community is the perfect place to learn together. IDNLearn.com is your go-to source for dependable answers. Thank you for visiting, and we hope to assist you again.