task4.py, there is a lot of redundant code, what we need to do is write functions to save repeated code.
mainfunction. There is no special significance to the main function, just that we chose to call it as
main, we can very well choose to call it 'somerandomfunctionasfasdf'.
main()and then try running the file, this time, it'll give some output.
list_task. These three would do the respective functions.
tasksvariable in the main function, so we remove it.