Sometimes the best way to learn something is to solve problems and learn as you go along! Learn Python the best way at www.teachyourselfpython.com
In this series, you are going to be presented with a series of problems and the tasks are inbuilt in (using comments) into the python file. Simply read the task, and attempt it! Note that in all tasks the answer is in the code itself. In most cases the code has been given to you, it is just a matter of you finding it, understanding what has been done, and then adapting it to write your own code!
You can either edit and code online in repl.it (click on the link on the right which says EDIT on repl.it. Alternatively, you can simply cut and paste the below into your own python file
So click on the link on the left <<--- 1-Chatbot and Variables to get started!
Please note: The challenges here introduce some basic concepts and the code doesn't necessarily reflect the most elegant solutions. This allows teachers to discuss advantanges and disadvantages of a certain approach with students. As we build up on the challenges, you'll note that the solutions become more elegant as additional programming tools and constructs are introduced
A sample flow chart (design) for this particular challenge could look like:
|Test No.||Description||Test Data(input)||Expected Outcome||Actual Outcome||Further Action?|