~ Solve Problems and Learn how to code in Python


1 - Chatbot & Introducing Variables

Ready? Read the presentation below and scroll down for the challenge

Challenge - Use of variables and basics in python

You can either edit and code online below (click on edit in repl.it to the right) or you can simply cut and paste the below into your own python file

#TASK 1: Extend the program to ask the user various questions like favourite movie,football
#team, favourite food, favorite subject, etc...and respond approrpriately.Make it as interesting as possible!

def main():
          print("*******************************WELCOME**************************************")
          name=(input("Hello there - what is your name?"))
          print("What a lovely name ..." + name)
          main()




main() 

Code your solution here

Systems Life Cycle (in a nutshell): Analyse - Design - Create - Test - Evaluate. Designing something or writing out some pseudocode before you actually write code is always a good idea! Get in to the habit of doing so! You can draw your flowchart here and screenshot it.

A sample flow chart (design) for this particular challenge could look like:

Flowchart: Python program to get the Fibonacci series between 0 to 50
Each challenge section below provides an online drawing tool where you can dynamically create flowcharts. Screenshot them into your presentation for submission.

Solutions & Answers

Answers /Solutions in the "members area" drive under: "Solve and Learn >>SOLUTIONS"

Python Visualisation of Challenge

Testing Table

You may want to read a little about Testing first. A teacher may go through some examples with you. Feel free to fill in the test table here, and screenshot it in to your powerpoint. Testing is absolutely essential once you have created a program!
Test No. Description Test Data(input) Expected Outcome Actual Outcome Further Action?
1
2
3
4
5
Coming soon!