Q:

Write a Python program to check if a string contains all letters of the alphabet

0

Write a Python program to check if a string contains all letters of the alphabet.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import string
alphabet = set(string.ascii_lowercase)
input_string = 'The quick brown fox jumps over the lazy dog'
print(set(input_string.lower()) >= alphabet)
input_string = 'The quick brown fox jumps over the lazy cat'
print(set(input_string.lower()) >= alphabet)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now