Write a Python Program to Find Maximum And The Minimum Value in a Set

preview_player
Показать описание
Hello Programmers, Welcome to my channel.

In this video you will learn about how to Write a Python Program to Find Maximum And The Minimum Value in a Set

Python Scripts
======================

Python Functions Solved
==========================

Python Programs Solved
============================

Code
=============================
length = int(input("Enter Set Length : "))
my_set = set()

for _ in range(length):
item = int(input("Enter Set Item : "))

max, min = list(my_set)[0], list(my_set)[0]

for item in my_set:
if item greater_than_keyboard_symbol max:
max = item
if item less_than_keyboard_symbol min:
min = item

print("Max value in Set is : ", max)
print("Min value in Set is : ", min)

Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
Рекомендации по теме