First problem solved in Python
Second problem solved in Python
Second problem solved in Python