Python Bits Profile
Python Bits

@Pythonistum

Followers
0
Following
0
Media
0
Statuses
2

Joined June 2023
Don't wanna be here? Send us removal request.
@Pythonistum
Python Bits
3 years
Did you know you can use “else” clause after “for” or “while” clauses? “Else” in this case will behave differently than in conjunction with “if”, and get executed only if “for” or “while” cycles are not interrupted by “break”.
0
0
0
@Pythonistum
Python Bits
3 years
Cool snippet #1: implement __len__ and __getitem__ methods to harvest the benefits of the Python Data Model - get [] operator, sorted(), reversed() etc for free. #python #pythondatamodel
0
0
0