3 ответов
+ 2
Learn loops. Then try it yourself first.
If not get then post your attempt here...
0
I do not encourage lazyness but since it's a hard concept, I am gonna give you some intel.
What you want to achieve is called Print Pattern, I am sure if you knew the exact keywords you would found it in the web already.
In many times, if you don't know the exact name of what you are searching for, it will be like searching a needle in the sea.
Here's great tutorial about Print Patterns
https://easycodebook.com/2021/05/JUMP_LINK__&&__python__&&__JUMP_LINK-print-star-pattern-shapes-programs/
The author is printing stars so try to understand the logic to print consecutive numbers instead 😉 and share your code in SoloLearn.