Two-dimensional word puzzle

Assignment Help Python Programming
Reference no: EM13338669

Write a python function called find_words that finds and prints the list of valid words in a two-dimensional word puzzle.

The input arguments for this function are:
input_puzzle # a string of characters with NxN characters
valid_words_list: # a list of valid words separated by white spaces.
The function, find_words, should print the formatted original puzzle, the list of the valid words, and the formatted solved two-dimensional puzzle in capital letters (by removing all the unused characters). See the example below.

You should also write a main program that reads two files:
input_puzzle.txt # This file contains the input puzzle as a string of characters.
valid_words.txt # This file contains a string of valid words (separated by spaces)

General Requirements

At the top of your program, as a comment, include the following information: (you need to replace the "xxx" with an appropriate number or string)

Your name (last_name, first_name)

Your student ID (1000-xxx-xxx)

Date of submission (yyyy-mm-dd)

Homework #

I spent xxx hours on this assignment

I rate the difficulty level of this assignment as : xx {a number between 1 and 10. (10 is the hardest)}

I rate the speed of the coverage of material in this course as: xx {a number between 1 and 10. (10 is too fast)}

My comment about this assignment and the course: [Optional comment]

Rules for naming variables and commenting your program:

You must include proper comments in your program.

Any variable that you use in your program must have a descriptive name (do not use variable names such as "x")

Append the type of the variable to the end of the variable using an underscore. For example (grades_list, average_float, name_str).

If the type of a variable may change in the run time, then append "_mix" at the end of the variable name.

For example (for element_mix in ["yes", "no" , 1, 6]).

Do NOT use all uppercase letters to name a variable. All uppercase variable names all primarily used for constants.


Attachment:- pyth.zip

Reference no: EM13338669

Questions Cloud

Write a program that reads two coordinates : Write a program that reads two coordinates (x1, y1) and (x2, y2), and prints the slope of the line passing through these two points.
What is the similarity theorem of fourier transforms : What is the similarity theorem of Fourier Transforms. Make up an example based on the boxcar function. Sketch your example and write the mathematical formulas for that example.
Major theoretical perspective of psychology : Need outline and rough draft on one of major theoretical perspective of psychology. The draft of your report should be complete enough for constructive feedback to be meaningful.
Historical cost or fair value accounting treatment : An interesting research paper on fair value accounting of PP&E under IFRS which allows either historical cost or fair value accounting treatment.
Two-dimensional word puzzle : Write a python function called find_words that finds and prints the list of valid words in a two-dimensional word puzzle
How many bits must the mar register have : Assume you have 512MB of main memory. How many bits must the MAR register have? Show your work.
How to go about designing and applying the filter : If you needed to eliminate some noise from some seismic data and you want to use a bandpass filter to do so, how would you go about designing and applying the filter
What the cutoff wavelength is for the experiment : In a photoelectric experiment, light with a wavelength of 250 nm hits a certain material. When a negative potential of 0.48 volt is applied there is no more current while a saturation current Is is recorded at positive voltages.
How far from the aperture should examination take place : Nearly plane waves of C02 laser light of wavelength l = 10.6 m emerge from a circular aperture 10 cm in diameter. If the C02 laser light is to be examined on a target in the far field

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd