Python Forum

Full Version: Homework on addition with working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all, I'm very new to programming and python is my very first language.
How to write a program in such that the working is shown as well?
[Image: En4zev6]
Hello, welcome to Python and the Forums!
There are many ways to tackle the task. I suggest you to start with writing pseuo code for the program. Or even diagram/flowchart first, if you need to get a better picture of how the program should work.
Then you can move on to transforming pseudocode to actual Python code.
You will like want to use divmod() function among others.
Feel free to ask (specific and descriptive) questions if you get stuck along the way.