Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Blok of language selection
- lan = input('Enter the input language (ru, en) ')
- while lab == 'en' or 'ru':
- if lan == 'en':
- alf = ('qwertyuiopasdfghjklzxcvbnm')
- if lan == 'ru':
- alf_en = ('йцукенгшщзхъфывапролджэячсмитьбю')
- else:
- print ("Incorrect enter. Try again.")
- # The function of panagram definition
- def pang_test(text):
- alf_en = ('qwertyuiopasdfghjklzxcvbnm')
- # Removing spaces
- new_alf = ('')
- for let in text:
- if let == str(' '):
- text = text.replace(let,'')
- # Blok of panagram definition
- for my_let in text:
- if my_let in alf_en:
- alf_en = alf_en.replace(my_let,'')
- continue
- if alf_en == (''):
- print ('This text is pangram')
- elif lan == 'en' and let == 'ю':
- print ('Invalid input language')
- elif: lan == 'ru' and let == 'm':
- print ('Invalid input language')
- else:
- print ('This text is not pangram')
- pang_test('the quick brown fox jumps over the lazy dog')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement