Python) Problems using For

강현상
Jul 27, 2021

--

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

--

--