Filter
Exclude
Time range
-
Near
Day 38/100 of #100DaysOfPythonTips 🐍: Why __name gets mangled to _Class__name It’s not for security. It’s not real privacy. It’s simply to prevent accidental overrides in subclasses. #Python #pythonlearn #100DaysOfCode
1
17
Day 35/100 of #100DaysOfPythonTips. Today let's learn about a dict method called "dict.fromkeys". We can remove duplicates from a sequence(ie. list) with the help "dict.fromkeys" #Python #Python3 #100DaysOfCode #CodeNewbie
4
8
Day 34/100 of #100DaysOfPythonTips. Let's explore possible cases, and the ones used in Python. #Python #Python3 #100DaysOfCode #CodeNewbies #DEVCommunity
3
11
Day 33/100 of #100DaysOfPythonTips. Another commonly asked interview question is -> How would you reverse a string in Python? Like this πŸ•ΆοΈπŸ˜Ž #Python #Python3 #100DaysOfCode #CodeNewbie
4
6
BTW, you can check the #100DaysOfPythonTips hashtag, to see all bit-size Python tips in one place πŸ˜‰ Test yourself. How many did you know ? 🀨More to come everyday... you can ping me for a request #Python #Python3 #100DaysOfCode #CodeNewbies
1
4
5
Day 31/100 of #100DaysOfPythonTips. Today is an easy one. The built-in 'hasattr' function. If you ever find yourself asking: "Does my object hasattr x?" Let's learnπŸβš•οΈ #Python #Python3 #100DaysOfCode #DEVCommunity #CodeNewbies
2
3
7
Day 30/100 of #100DaysOfPythonTips. Today we are going deep into __hash__ and __eq__. In the past, I was asked in two interviews about __hash__ Let's see it in action ⚑️ #Python #Python3 #100DaysOfCode #DEVCommunity #CodeNewbies
2
2
Day 29/100 of #100DaysOfPythonTips. Common interview question -> "hash" and it's relation with dict. Today is just about built-in function 'hash'. Tomorrow would be more detailed, also about __hash__ dunder method πŸ˜‰ #Python #Python3 #100DaysOfCode #DEVCommunity #CodeNewbies
3
6
Day 28/100 of #100DaysOfPythonTips. Have you got a KeyError while accessing one of your dict values? -get- method to the rescue! #Python #Python3 #100DaysOfCode #DEVCommunity #CodeNewbies
1
3
Day 27/100 of #100DaysOfPythonTips. What is SimpleNamespace? Let's use dot notation like in JS to access attributes of a mapping type, instead of square bracket notation. #Python #Python3 #100DaysOfCode
7
7
Day 26/100 of #100DaysOfPythonTips. How to split a word(a string without whitespace) to a chars of list. Let's figure it out 🧐 #Python #Python3 #100DaysOfCode
1
2
Day 25/100 of #100DaysOfPythonTips. Let's look at the one of the first built-in functions of beginner Pythonistas. #Python #Python3 #100DaysOfCode #100daysofpython
1
Day 24/100 of #100DaysOfPythonTips. Yesterday we saw shallow copying in Python. Today we go deep into this subject and explore 🧐 deep copying in Python. Simplest explanation ever 😎 Follow me for more Python tips every day πŸ₯³ #Python #Python3 #100DaysOfCode #100DaysOfCode
2
1
Day 23/100 of #100DaysOfPythonTips. One of the most asked interview questions in Python is -> What is shallow copying? Let's learn πŸ˜ŽπŸ€“ #Python #Python3 #100DaysOfCode #100daysofpython
3
Day 22/100 of #100DaysOfPythonTips. Better use "bool" function to return a Boolean value. #Python #Python3 #100DaysOfCode #100daysofpython
1
1
Day 21/100 of #100DaysOfPythonTips. Yes, we can slice like this -> my_list[1:9:2]. But we can also store the slice in a variable, and pass around.Let's see the built-in "slice" function. #Python #Python3 #100DaysOfCode #100daysofpython
1
3
Day 20/100 of #100DaysOfPythonTips. How can you get a named attribute of an object with a string? instead of `my_object.my_atrr` -> getattr(my_object, 'my_attr'). Isn't that nice? #Python #Python3 #100DaysOfCode #100daysofpython
2
2
Day 19/100 of #100DaysOfPythonTips. Today, let's take a close look on the built-in function: "any", which means "if any of the items in a given iterator are truthy?" #Python #Python3 #100DaysOfCode #100daysofpython
1
7
Day 18/100 of #100DaysOfPythonTips. Today, we continue with one of the built-in functions again, which is "all". #Python #Python3 #pythondevelopers #100DaysOfCode #100daysofpython
2
2
I gave a long break and I'm bending the rules a bit here, but I'm back πŸ™‚πŸ˜Ž Day 17/100 of #100DaysOfPythonTips. How would you create a for loop with indexes in Python? "enumerate" to the rescue! #PythonProgramming #Python3 #pythondevelopers #100DaysOfCode #100daysofpython
4
3