1) string "string" print(len(string.split())

2) string = "string" print(string[0].upper() + string[1:].lower())

3) string = "string "
char = input()
answer = len([ch for ch in string.split() if ch[-1] == char])
print(answer)

4) string = "string"
answer = [ch for ch in string .split() if ch[0] = ch[-1]
print(', 'join(answer))

5) string = "string"
word = input() print(string.count(word))

Опишите алгоритмы словами. Что делается на каждом шаге​
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.