changed problem 3 in python
solved problem 4 in python
solved problem 5 in python
solved problem 6 in python