higher_func_2.py 462 B

1234567891011121314151617181920212223242526272829
  1. '''
  2. Функции all() и any()
  3. '''
  4. def func_1():
  5. print(all("A" in x.upper() for x in input().split()))
  6. def func_2():
  7. lst = input().split()
  8. print(all(int(lst[i]) > int(lst[i + 1]) for i in range(len(lst) - 1)))
  9. def func_3():
  10. lst = input().split()
  11. print(any([s.lower().endswith('ought') for s in lst]))
  12. def main():
  13. # func_1()
  14. # func_2([18, 11, 6, 5, 4, 3])
  15. # func_2()
  16. func_3()
  17. if __name__ == '__main__':
  18. main()