Python solution for problem 1
Python solution for problem 2
Python solution for problem 3
Python solution for problem 4
Python solution for problem 5
Python solution for number 6