Python) Problems using For

First problem: Adding all numbers from 1 to the number it is typed(using For)

input: 4 output: 10

Second Problem: Making “*” in stair shape, the last row will have the same numbers of stars that you have typed

input: 5
output

Third problem: Determining numbers in a number list that are smaller than what you have typed

input and output