You are on page 1of 1

Foundations of AI Applications Lab

Prepared By: Madhur Sharma

Class/Section-C.S.E/44-A

UID-20BCS9529

Final_Practical_Exam

Experiment:
Write python program to multiply the number in a given list.
Requirements:
Pc/Laptop, online/offline python compiler.
Code:
#experiment to multiply number in a given list.
#first will use import numpy command.
import numpy
list = [5, 10, 30]
# using numpy.prod() to get the multiplications
multiplication = numpy.prod(list)
print(multiplication)
Outcome:

You might also like