4 easy python programing

There are 4 questions some of them are with hints, please follow the insturction