News
For loops are a bit of a nuisance in Python. My other, and bigger problems with Python is the horrible significance of using indentation to create loops, and that variables get added mysteriously ...
So I'm not a programmer, I took a few classes ages ago, but there are some Python scripts in use on the servers here so I figured I'd start. What I'm trying to do is call an API and get a chunk of ...
Here's the code for that: for i in range(0,10): for j in range(0, i+1): print("*", end='') print() By reversing the count on the outer loop, you can flip the triangle vertically. Padding the output of ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results