Find how many times a character is repeated in a string in A360 | Python Package

Опубликовано: 27 Октябрь 2024
на канале: RPAFeed
4,275
50

In this video, we have built a bot to find How many times a character is repeated in a string in A360.

👉 Subscribe to our RPAFeed YouTube channel to get video updates.
👉 Our Blog: https://rpafeed.com

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

💻 Python Code:

def CharacterCount(inputString):
lettersCount = {}

for i in inputString:
if i in lettersCount:
lettersCount[i] += 1
else:
lettersCount[i] = 1

return str(lettersCount);

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

Social Media:
📢Instagram:   / rpafeed  
📢Facebook:   / rpafeed  
📢Twitter:   / rpafeed  
📢LinkedIn:   / rpafeed  
📢Medium:   / rpafeed  
📢Pinterest:   / rpafeed  

#PythonPackage #a360 #StringPackage

Please write back to us at [email protected] for more information.