Conversing with a Chatbot: Meet Botley
In this last Action Project for our Fall Term Computer Science class, we took a deeper dive into Python and its various functions, mainly focusing around if/else statements. We also learned about how to use different booleans, or little pieces of code that determine whether something is true or false. For our final task this term, we had to create a chatbot using Python code for a user to interact with, and have the chatbot ask them various questions and give various answers depending on the user's response. We additionally had to put comments in our code, since Python will stop reading a line of code after the # symbol, explaining our coding. Below is the chatbot that I've created, which you're free to interact with.
In conclusion, I thought that this Action Project was an enjoyable and interesting project to develop. It was a little challenging to find the right questions to ask and how to implement them into Python for me, but overall it was cool to be able to code out our own little chatbot and see the results of our work.
Comments
Post a Comment