This lesson looks at how to create a decision tree for a problem to be solved in Python.
The program then uses functions to search for keywords in user responses.
The first function provides a response internal to the program whereas the second function looks externally and imports the information from a text file.
As .py file extensions are not accepted, I have uploaded it as a text file - this simply needs copied and pasted into Python IDLE.
The program then uses functions to search for keywords in user responses.
The first function provides a response internal to the program whereas the second function looks externally and imports the information from a text file.
As .py file extensions are not accepted, I have uploaded it as a text file - this simply needs copied and pasted into Python IDLE.
Get this resource as part of a bundle and save up to 11%
A bundle is a package of resources grouped together to teach a particular topic, or a series of lessons, in one place.
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have purchased this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.
£4.00