Python program to generate a 3*4*6 3D array whose each element is *

array = [[ [’*’ for col in range(6)] for col in range(4)] for row in range(3)]

print(array)

  1. array = [[ [’*’ for col in range(6)] for col in range(4)] for row in range(3)]

print(array)

s = [‘a’, ‘b’, ‘c’, ‘d’]

str1 = ‘’.join(s)

print(str1)

1 Like