Задание

На вход программе подается строка текста. Выберите программы, которые проверяют, что строка заканчивается подстрокой .com или .ru.

  • print\('YES' if input\(\).endswith\(\('\.com','\.ru'\)) else 'NO')
  • s = input\(\)
    print('YES' if s.endswith\(\('\.com','\.ru'\)) else 'NO')
  • print\('YES' if input\(\).startswith\(\('\.com','\.ru'\)) else 'NO')
  • s = input\(\)
    print\("YES" if \(s⟨0⟩ == "\.com"\) or \(s⟨1⟩ == "\.ru"\) else "NO")
  • s = input\(\)
    print\('YES' if s\.endswith\('\.ru'\) and s.endswith\('\.com'\) else 'NO')
  • s = input\(\).lower\(\)
    print\("YES" if \(s⟨2⟩ == "\.com"\) or \(s⟨3⟩ == "\.ru"\) else "NO")
  • print(if input\(\).endswith\(\('\.com','\.ru'\)) 'YES' else 'NO')
  • print(input\(\).endswith\('\.com','\.ru'\))