Wordsearch Creator
Write a program that asks a user to enter three words. The first word should be 4 letters long, the second word should be 5 letters long and the third word should be six letters long. The words should then be entered into a grid of letters to create a wordsearch. This wordsearch should then be printed out for the user.
Enter a four letter word: DOGS Enter a five letter word: FROGS Enter a six letter word: PEANUT OQKDURNAJE XMNODOGSTB POERNAKDOQ DTHFROGSZX HDUEJVNALD PEANUTHAJD
get a four letter word from the user get a five letter word from the user get a six letter word from the user create each line of the wordsearch and use each of the three words print out all ten lines of the wordsearch
four_letter_word = input("Enter a four letter word: ")
five_letter_word = input("Enter a five letter word: ")
six_letter_word = input("Enter a six letter word: ")
line1 = "OQKDURNAJE"
line2 = "XMNO" + four_letter_word + "STB"
line3 = "POERNAKDOQ"
line4 = "DTH" + three_letter_word + "ZX"
line5 = "HDUEJVNALD"
line6 = six_letter_word + "AJD"
print(line1)
print(line2)
print(line3)
print(line4)
print(line5)
print(line6)
# Ask for and assign three words
four_letter_word = input("Enter a four letter word: ")
five_letter_word = input("Enter a five letter word: ")
six_letter_word = input("Enter a six letter word: ")
# Assign each line of the wordsearch to a variable
line1 = "OQKDURNAJE"
line2 = "XMNO" + four_letter_word + "STB"
line3 = "POERNAKDOQ"
line4 = "DTH" + three_letter_word + "ZX"
line5 = "HDUEJVNALD"
line6 = six_letter_word + "AJD"
# Display each line of the wordsearch to the user
print(line1)
print(line2)
print(line3)
print(line4)
print(line5)
print(line6)
Extension
Extend the wordsearch to be 10 lines and include two 3 letter words and two 4 letter words.