Run a script in a database. (python)?. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Run a script in a database. (python)?.

A Church database contains Church members details including the tithes i.e(1/10) of the earnings of each member per month.Each month the data records are kept for each member. How can i develop a script, that when i insert an amount less than the original tithes amount of a specific member, that name is automatically sent to a new folder or group say (Names of members whom have not finished payment of tithes for this month). https://code.sololearn.com/c5RS995Xexf6/?ref=app

8th Dec 2018, 10:06 AM
Emmanuel Mtera
Emmanuel Mtera - avatar
4 Answers
0
The Question is: did you tried to find an own Solution for this Problem? It is always better to write a Code by yourself. If it won't work you can post it here and the Community will help you to fix it. But you should not wait that anyone here does the Job for you.
8th Dec 2018, 11:04 AM
Sebastian Keßler
Sebastian Keßler - avatar
+ 1
Thanks. I will write the code and post it
9th Dec 2018, 8:15 AM
Emmanuel Mtera
Emmanuel Mtera - avatar
+ 1
Emmanuel Mtera Here is a Code with some Hints. Try to keep your Codes as simple as possible (KISS). When you learned more about Python you can use Objects to solve this Problem. https://code.sololearn.com/cf54NSQ3Qh2C/?ref=app https://www.sololearn.com/learn/Python/2467/
9th Dec 2018, 1:28 PM
Sebastian Keßler
Sebastian Keßler - avatar
+ 1
Thanks for opening my mind up about classes. I will keep on learning
9th Dec 2018, 8:44 PM
Emmanuel Mtera
Emmanuel Mtera - avatar