Respuesta :

fichoh

The code block creates a list of tuples which holds the name and Density values of materials. The program written in python 3 goes thus ;

name = input()

#accepts name input from user

name = [n for n in name.split()]

#split the inputs

density = input()

#accepts density inputs

density = [int(d) for d in density.split()]

#split the density inputs

currMat = list(zip(name, density))

#combines the inputs into a list of tuples

requestedMaterial = currMat

#assigns to another variable

print(requestedMaterial)

A sample run of the program is attached

Learn more :https://brainly.com/question/25700348

Ver imagen fichoh