In Python if you want to execute something after a for-loop has finished, you can use a else-clause.
This code:
for i in range(5):
print(i)
else:
print("Finished")
Prints:
0
1
2
3
4
Finished
In Python if you want to execute something after a for-loop has finished, you can use a else-clause.
This code:
for i in range(5):
print(i)
else:
print("Finished")
Prints:
0
1
2
3
4
Finished
For further actions, you may consider blocking this person and/or reporting abuse
Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.
Prasanna Venketesh -
Shpetim Haxhiu -
Dmitry Romanoff -
A0mineTV -
Top comments (0)