# -*- coding: utf-8 -*-
"""
Created on Tue Sep 17 18:32:46 2024
@author: Admin
"""
# Write a Python function to find the Max of three numbers.
def maximum(a, b, c):
if (a >= b) and (a >= c):
largest = a
elif (b >= a) and (b >= c):
largest = b
else:
largest = c
return largest
# Driven code
a = int(input('Please enter 1st Integer:'))
b = int(input('Please enter 1st Integer:'))
c = int(input('Please enter 1st Integer:'))
print(maximum(a, b, c))
# Write a Python function to sum all the numbers in a list.
total = 0
# creating a list
list1 = [11, 5, 17, 18, 23]
# Iterate each element in list and add them in variable total
for ele in range(0, len(list1)):
total = total + list1[ele]
# printing total value
print("Sum of all elements in given list: ", total)
# Write a Python function to multiply all the numbers in a list.
total = 1
# creating a list
list1 = [11, 5, 17, 18, 23]
# Iterate each element in list and add them in variable total
for ele in range(0, len(list1)):
total = total * list1[ele]
# printing total value
print("Multiple of all elements in given list: ", total)