Last active
March 19, 2022 07:39
-
-
Save luckydenis/7444f9d8d5b6027687a147aa5f75ec8c to your computer and use it in GitHub Desktop.
Задачи для общей практики синтаксиса python3 - 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Задача 1 | |
======== | |
На вход консоли подаются слова через пробел, | |
необходимо найти количество слов | |
Пример 1 | |
-------- | |
input: дом квартира яблоко | |
output 3 | |
Пример 2 | |
-------- | |
input: дом | |
output 1 | |
Задача 2 | |
======== | |
На вход консоли подаются буквы через пробел, | |
необходимо найти наибольшую букву в лексикографическом порядке | |
Пример 1 | |
-------- | |
input: a d c a | |
output d | |
Пример 2 | |
-------- | |
input: a a a a | |
output a | |
Задача 3 | |
======== | |
На вход консоли подаются буквы через пробел, | |
необходимо отсортировать буквы в лексикографическом убывапющем порядке | |
Пример 1 | |
-------- | |
input: a b d c | |
output ['d', 'c', 'b', 'a'] | |
Пример 2 | |
-------- | |
input: a a a a | |
output ['a', 'a', 'a', 'a'] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment