This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"fa-solid fa-house", | |
"fa-solid fa-magnifying-glass", | |
"fa-solid fa-user", | |
"fa-regular fa-user", | |
"fa-brands fa-facebook", | |
"fa-solid fa-check", | |
"fa-solid fa-download", | |
"fa-brands fa-twitter", | |
"fa-solid fa-image", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
total = 12345 | |
step = 10 | |
iteration = 0 | |
for _ in range(total): | |
iteration += 1 | |
if (progress := iteration / total * 100) >= step: | |
print(f"Progress {round(progress)}% [{iteration}/{total}]") | |
step += 10 | |
# Output: |