Найти - Пользователи
Полная версия: Максимум последовательности, только Цикл while
Начало » Python для новичков » Максимум последовательности, только Цикл while
1 2
py.user.next
2234
что такое “def f():”
Это определение функции, чтобы её можно было много раз вызывать.
Michael.py
i = 0
while i < 20:
n = raw_input('Enter: ')
abc =
abc.append(n)
i +=1
print max(abc)
Chaynik01
x=int(input())
x_max=x
while x!=0:
    while x>x_max:
        x_max=x
    x=int(input())
print(x_max)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB