~ Solve Problems and Learn how to code in Python


0 - Introduction and Pedagogy

Assuming you have worked your way through Solve and Learn #1 and #2, Welcome!!!

Sometimes the best way to learn something is to solve problems and learn as you go along!


So far, if the user writes something, it shows up on the screen, but it isn't actually stored. What if you want to actually store data and content in a physical file that can be accessed later!? Well, welcome to FILE HANDLING. It is now time to get really serious about coding in python, and it is suggested that you download your very own installation of python and work with IDLE and a text file. You can continue to work in repl.it as well, but to do so you will need to sign up for a free account with repl.it (this will enable you to work with text and other external files). Note that you may not be allowed internet access in an exam or controlled assessment, which means, geting the hang of coding in IDLE (not in an online browser) is always a good idea.

Download Python 3 here:


So click on the link on the left <<--- 1-Intro to File Handling......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


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"

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!