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.
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')
Comments
Leave a comment