def summa(list):
minimal_num=list[0]
for i in minimal_num:
if i<minimal_num:
minimal_num=i
print(minimal_num)
num=[1,5,78,32,6,8]
summa(num)
ошибка:
raceback (most recent call last):
File "C:\Users\79277\PycharmProjects\pythonProject\main.py", line 8, in
summa(num)
File "C:\Users\79277\PycharmProjects\pythonProject\main.py", line 3, in summa
for i in minimal_num:
TypeError: 'int' object is not iterable