pythonsecrets's profile picture. 🐍Unlock the power of Python with daily tips and tricks! 
💡Stay ahead in coding with concise and insightful Python hacks.

Python Tips

@pythonsecrets

🐍Unlock the power of Python with daily tips and tricks! 💡Stay ahead in coding with concise and insightful Python hacks.

Starting a Python challenge ♾and will try to cover most of the @Python Standard Library concepts. #Python #PYthonTips #Pythonsecrets


Wondering how to get the file path? Useful in debug logs for bigger projects.

pythonsecrets's tweet image. Wondering how to get the file path?
Useful in debug logs for bigger projects.

So, what's happening here? What will be the output?

pythonsecrets's tweet image. So, what's happening here?
What will be the output?

What is the Output? 1. Car 2. BMW 3. Error 4. None

pythonsecrets's tweet image. What is the Output?
1. Car
2. BMW
3. Error
4. None

Day $ Coding. Solvin leetcode.com/problems/remov… After so many efforts all the test cases were not accepted. Finally noticed a blunder I was doing. Any guess what could be wrong here?

pythonsecrets's tweet image. Day $ Coding.
Solvin leetcode.com/problems/remov…
After so many efforts all the test cases were not accepted.
Finally noticed a blunder I was doing. Any guess what could be wrong here?
pythonsecrets's tweet image. Day $ Coding.
Solvin leetcode.com/problems/remov…
After so many efforts all the test cases were not accepted.
Finally noticed a blunder I was doing. Any guess what could be wrong here?

#Python Using 'filter' to easily discard the elements from a sequence. Implement a function to return Boolean based on the criteria. *Use filter to remove the elements not satisfying the criteria. Follow @pythonsecrets

pythonsecrets's tweet image. #Python 
Using 'filter' to easily discard the elements from a sequence. Implement a function to return Boolean based on the criteria. 
*Use filter to remove the elements not satisfying the criteria.

Follow @pythonsecrets

Use of "for-else" in #Python. If 'break' is executed else will be skipped. If not else will be continued (no odd numbers). @pythonsecrets

pythonsecrets's tweet image. Use of "for-else" in #Python.
If 'break' is executed else will be skipped.
If not else will be continued (no odd numbers).
@pythonsecrets
pythonsecrets's tweet image. Use of "for-else" in #Python.
If 'break' is executed else will be skipped.
If not else will be continued (no odd numbers).
@pythonsecrets

#Python What will be the output?

pythonsecrets's tweet image. #Python What will be the output?

United States Trends

Loading...

Something went wrong.


Something went wrong.