DISPLAYING A NUMBER IN THE SHAPE OF A SNAKE
Keywords:
input()-entered information, time- module for working with time, ljust()-aligns a string to the left.Abstract
This research article discusses solving some problems in Python programming language. Solving such logical problems helps improve the student's knowledge. In this article we will work with numbers by arranging the natural numbers so that they have the shape of a snake. This will help you to use and understand the topic of loops correctly. We also solve using simple methods, these simple methods do not require more memory and are also faster. This solution method is called the best algorithm. If you solve problems with a better algorithm, it shows that your programming level has improved. If you solve difficult problems every day, you will improve every day. If you are interested, let's move on to explaining and solving such problems.
Downloads
References
skillfactory.ru
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution 4.0 International License.
Articles published in this journal are licensed under the Creative Commons Attribution 4.0 International License (CC-BY 4.0). Under this license:
- Share: Copy and redistribute the material in any medium or format
- Adapt: Remix, transform, and build upon the material for any purpose, including commercially
Attribution required: You must give appropriate credit, provide a link to the license, and indicate if changes were made.
License URL: https://creativecommons.org/licenses/by/4.0/
Authors retain copyright of their work while granting the journal first publication rights.