Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 11
- text = input()
- text = text[:-4]
- print(f"{text.upper()}, {text.isalpha()}")
- # 12
- text = input()
- count_n = text.lower().count('н')
- words = text.split()
- all_start_with_upper = True
- for i in words:
- if not i[0].isupper():
- all_start_with_upper = False
- break
- print(f"н = {count_n}, {words}, {all_start_with_upper}")
- # 13
- text = input()
- text = text.replace('е', 'и')
- text = text[::-1]
- count_i = text.lower().count('и')
- print(f"{text}, и = {count_i}")
- # 14
- text = input().split()
- joined_text = "_".join(text)
- print(f"{joined_text}, {joined_text.islower()}")
- # 15
- text = input()
- text = text.lower()
- print(f"{text}, o = {text.lower().count('о')}, {text.isalpha()}")
- # 16
- text = input()
- text = text[::-1]
- text = text.replace('а', 'у')
- print(f"{text}, {text.startswith('у')}")
- # 17
- text = input()
- text = text[3:]
- text = text.lower()
- count_i = text.lower().count('и')
- print(f"{text}, и = {count_i}")
- # 18
- text = input()
- count_i = text.lower().count('и')
- print(f"{":".join(text.split())}, и = {count_i}")
- # 19
- text = input()
- text = text.upper()
- words = text.split()
- all_end_with_O = True
- for word in words:
- if not word.endswith('О'):
- all_end_with_O = False
- break
- print(f"{text}, {words}, {all_end_with_O}")
- # 20
- text = input()
- text = text[:-3]
- text = text[::-1]
- print(f"{text}, {text.isnumeric()}")
- # 21
- text = input()
- text = text.replace('т', 'д')
- count_d = text.lower().count('д')
- print(f"{text}, д = {count_d}, {text.islower()}")
- # 22
- text = input()
- text = text.lower()
- words = text.split()
- all_start_with_a = True
- for word in words:
- if not word.startswith('a'):
- all_start_with_a = False
- break
- print(f"{text}, {words}, {all_start_with_a}")
- # 23
- text = input()
- count_v = text.lower().count('в')
- text = text.upper()
- print(f"{text},в = {count_v}, {text.endswith('А')}")
- # 24
- text = input()
- count_b = text.lower().count('б')
- print(f"{"/".join(text.split())}, б = {count_b}")
- #25
- text = input()
- text = text[::-1]
- text = text.lower()
- count_a = text.lower().count('а')
- print(f"{text}, a = {count_a}")
- #26
- text = input()
- text = text.replace('е', 'а')
- print('-'.join(text.split()))
- #27
- text = input()
- text = text.upper()
- text = text[2:]
- print(f"{text}, {text.isalpha()}")
- #28
- text = input()
- count_i = text.lower().count('и')
- text = text[::-1]
- print(f"{text}, и = {count_i}, {text.startswith('а')}")
- #29
- text = input()
- text = ".".join(text.split())
- count_e = text.lower().count('е')
- print(f"{text}, e = {count_e}")
- #30
- text = input()
- text = text[:-2]
- text = text.lower()
- print(f"{text}, {text.isnumeric()}")
- #31
- text = input()
- text = text.lower().replace('и', 'е')
- text = text[::-1]
- print(f"{text}, {text.endswith('а')}")
- #32
- text = input()
- text = text.lower()
- count_o = text.count('о')
- print(f"{text}, o = {count_o}, {text.startswith('н')}")
- #33
- text = input()
- count_i = text.lower().count('и')
- print(f"{','.join(text.split())}, и = {count_i}")
- #34
- text = input()
- text = text[::-1]
- text = text.replace('о', 'у')
- print(f"{text}, {text.isalpha()}")
- #35
- text = input()
- words = text.split()
- count_a = 0
- for i in words:
- if 'а' in i:
- count_a += 1
- print(f"{"/".join(words)}, a = {count_a}")
- #36
- text = input()
- text = text.upper()
- count_u = text.lower().count('у')
- print(f"{text}, у = {count_u}, {text.endswith('Н')}")
- #37
- text = input()
- text = text[3:]
- print(f"{'-'.join(text.split())}")
- #38
- text = input()
- text = text.lower().replace('к', 'т')
- text = text[::-1]
- print(f"{text}, {text.startswith('т')}")
- #39
- text = input()
- count_e = text.lower().count('е')
- text = text.lower()
- print(f"{text}, e = {count_e}, {text.isalpha()}")
- #40
- text = input()
- words = text.split()
- count_v = 0
- for i in words:
- if 'в' in i.lower():
- count_v += 1
- print(f"{'-'.join(words)}, в = {count_v}")
Advertisement
Add Comment
Please, Sign In to add comment