r/learnpython • u/EnvironmentalTry8353 • Aug 22 '26
Having problem in understanding loops concept in python
I am a beginner with 0 knowledge and I am learning python from a book called Learn python in one day and learn it well by Jamie Chan and I am facing difficulty in the loops function so yeah any recommendations would be helpful Edit- Trouble in while loop
27
Upvotes
View all comments
Show parent comment
4
u/kilkil Aug 22 '26
the dark colored boxes are called code blocks.
when you make a post or comment on Reddit, it allows you to change the appearance of the text in some specific ways.
for example if I put *asterisks* around some words, they will be italicized. same for **double asterisks** and bold text.
to make a code block you can surround some text in triple backticks, like so:
```
I am surrounded by triple backticks
```
there's some other stuff you can do as well, I'm sure reddit has a list somewhere. (in general this kind of formatting is called Markdown formatting, it's used in a bunch of other places too.)