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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

강현상
강현상

No responses yet

Write a response