Question: please use python to do the question, thanks! 5. Alphabetical Order The following words have three consecutive letters that are also consecutive letters in the
5. Alphabetical Order The following words have three consecutive letters that are also consecutive letters in the alphabet: THIRSTY, NOPE, AFGHANISTAN, STUDENT Write a program that accepts a word as input and determines whether or not it has three consecutive letters that are consecutive letters in the alphabet. The program should use a Boolean-valued function named isTripleConsecutive that accepts an entire word as input. Hint: Use the ord function. See Fig. 4.39. Enter a word: HIJACK HIJACK contains three successive letters in consecutive alphabetical order. FIGURE 4.39 Possible outcome of Programming Project 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
