Answer to Question #282729 in Python for darknighyuv

Question #282729

Construct an algorithm and write a python to create a regular expression to

retrieve marks and names from a given string or files. Extract only marks having 2 digits

and names starting with a capital letter.


1
Expert's answer
2021-12-27T08:39:41-0500
word = input('')
word = word.lower()
length = len(word)
count=0
for i in range(0,length):
    for j in range(0,length):
        if word[i]==word[j]:
            count+=1
if count==len(word):
    print('Good')
else:
    print('Bad')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS