Found This
1.19K subscribers
190 photos
13 videos
3 files
238 links
Things I found. Send yours through @found_this_bot
Download Telegram
Found this "comprehensive project and package management solution for Python". This was exactly what i was looking for, it provides "a unified experience to install and manages Python installations, pyproject.toml based projects, dependencies and virtualenvs seamlessly."

https://rye.astral.sh/

#Python #Virtual #Environment
3
Found this weird control flow option in Python where you can use else clause in a for or while loop and it executes, if the loop finishes without executing the break.


letters = ['a', 'b', 'c']
looking_for = 'a'

for letter in letters:
if letter == looking_for:
print('Found the letter!')
break
else:
print("Didn't find the letter.")


https://docs.python.org/3/tutorial/controlflow.html#else-clauses-on-loops

#Python #Loop #Else