![Indently](/img/default-banner.jpg)
- 837
- 27 527 724
Indently
Denmark
Приєднався 1 вер 2019
Simple is better than complex_
10 Neat Ways To Use Underscore In Python
A lot of you have probably seen an underscore being used in special ways in Python, but do you know all of them? In today's video I will be showing you 10 neat ways that you can use the underscore in Python code!
▶ Become job-ready with Python:
www.indently.io
▶ Follow me on Instagram:
indentlyreels
00:00 Learning Python made simple
00:05 Intro
00:13 Last used value
01:20 Snake-case
02:20 Number formatting
03:51 Unimportant values
05:07 Star underscore
06:09 For loops
07:22 Semiprivate variables
09:44 Name mangling
12:16 Dunder methods
15:20 Reserved names
16:15 Default case
17:56 Summing it up
▶ Become job-ready with Python:
www.indently.io
▶ Follow me on Instagram:
indentlyreels
00:00 Learning Python made simple
00:05 Intro
00:13 Last used value
01:20 Snake-case
02:20 Number formatting
03:51 Unimportant values
05:07 Star underscore
06:09 For loops
07:22 Semiprivate variables
09:44 Name mangling
12:16 Dunder methods
15:20 Reserved names
16:15 Default case
17:56 Summing it up
Переглядів: 14 808
Відео
10 Nooby Mistakes Devs Often Make In Python
Переглядів 43 тис.14 днів тому
Here are 10 nooby mistakes that devs often make in Python. Some are more dangerous than others, but all in all, it's good to know about them, and how to avoid them! ▶ Become job-ready with Python: www.indently.io ▶ Follow me on Instagram: indentlyreels 00:00 Learning Python made simple 00:05 Intro 00:14 #1 Value is not the same as identity 03:04 #2 Bad looping 05:18 #3 Modifying s...
5 Awful Python Mistakes To Avoid
Переглядів 22 тис.14 днів тому
In today’s video we’re going to be looking at 5 awful Python mistakes that I’ve made throughout the years. Hopefully this gives you some insight on how to avoid making these mistakes in your own projects! Master type annotations here: indently.io/#types ▶ Become job-ready with Python: www.indently.io ▶ Follow me on Instagram: indentlyreels 00:00 Learning Python made simple 00:05 I...
5 Cool Python One-Liners
Переглядів 29 тис.21 день тому
Here are 5 cool Python one liners that you can use and play around with! Get the project here: github.com/indently/oneliners ▶ Become job-ready with Python: www.indently.io ▶ Follow me on Instagram: indentlyreels 00:00 Intro 00:23 Reverse slice 01:48 Elvis 03:31 Indently.io 04:07 Flatten 06:59 Password generator 09:13 Email extractor 12:00 Outro
5 Really Cool Python Functions
Переглядів 52 тис.Місяць тому
In this video we are going to be learning about 5 really cool Python functions that I've loved using throughout the years. ▶ Become job-ready with Python: www.indently.io ▶ Follow me on Instagram: indentlyreels 00:00 Learning Python made simple 00:05 Intro 00:22 exec() 03:17 partial() 08:43 2 functions* 13:32 3 functions* 16:35 askopenfilename() 19:35 Summing it up
5 Fun Python Easter Eggs
Переглядів 35 тис.Місяць тому
Here are 5 fun Python easter eggs that you should know about if you love Python. ▶ Become job-ready with Python: www.indently.io ▶ Follow me on Instagram: indentlyreels 00:00 Learning Python made simple 00:05 Intro 00:23 Easter egg #1 01:07 Easter egg #2 01:43 Secret challenge 02:22 Easter egg #3 04:16 Easter egg #4 04:46 Easter egg #5 05:08 Why is this here? 06:10 Summing it up
What is "@total_ordering" in Python?
Переглядів 20 тис.Місяць тому
How's it going everyone? Today we're going to be learning about a decorator in Python that can supposedly save us the trouble of defining the comparison dunder methods in our classes. ▶ Become job-ready with Python: www.indently.io ▶ Follow me on Instagram: indentlyreels 00:00 Learning Python made simple 00:05 Intro 00:25 Imports 00:37 What is @total_ordering? 01:56 Comparisons 05...
Should you still learn Python in 2024?
Переглядів 8 тис.Місяць тому
Should you still learn Python in 2024?
Python's "methodcaller" is very useful
Переглядів 24 тис.Місяць тому
Python's "methodcaller" is very useful
Python's "itemgetter" is very useful
Переглядів 44 тис.2 місяці тому
Python's "itemgetter" is very useful
5 Tips To Write Better Python Functions
Переглядів 93 тис.2 місяці тому
5 Tips To Write Better Python Functions
Python: A Quick Guide To Type Annotations (ft. Mypy)
Переглядів 28 тис.3 місяці тому
Python: A Quick Guide To Type Annotations (ft. Mypy)
5 More Useful F-String Tricks In Python
Переглядів 43 тис.3 місяці тому
5 More Useful F-String Tricks In Python
5 Useful Python Decorators (ft. Carberra)
Переглядів 89 тис.3 місяці тому
5 Useful Python Decorators (ft. Carberra)
5 Useful F-String Tricks In Python
Переглядів 267 тис.4 місяці тому
5 Useful F-String Tricks In Python
How to use: "Never" & "NoReturn" in Python (Tutorial)
Переглядів 71 тис.4 місяці тому
How to use: "Never" & "NoReturn" in Python (Tutorial)
How To Install Python in 2024 (Latest Version) [Mac OS/ Windows]
Переглядів 4,7 тис.4 місяці тому
How To Install Python in 2024 (Latest Version) [Mac OS/ Windows]
How To Make ANY Function Asynchronous In Python 3.12
Переглядів 35 тис.4 місяці тому
How To Make ANY Function Asynchronous In Python 3.12
You should always try for RAII-like behaviour, if it's a paradigm that fits in your language's syntax.
But then the variable should not be named i.
If you read the functools.lru_cache you can see that it is much more complicated than your implementation. The main reason it is more complicated (from what I understood about it) is that it is thread-safe If you want to use a function that is implemented internally in python and you want to implement it on your own, it is probably not the best idea, since you probably thought less about the edge cases
you're an angel!!!!!!!!!! tysmmm
That is why I don't like interprated languages like python. C# does not allow you to modify the collection when iterating on it, it gives you compile error
will ddos script work in this
UHHH METH?
data = numpy.loadtxt("secret.txt") with open("secret.txt") as f lines = f.readlines() data = numpy.empty((len(lines), len(lines[0].split()))) for i, line in enumerate(lines): data[i] = map(float, line.split()) I'm going to test this to make sure there's no errors
so numpy doesn't want to assign a map to an array (TypeError: float() argument must be a string or a real number, not 'map') "data[i] = list(map(float, line.split()))" works
this is the first time python actually made sense for me. such a usefull way to handle code block that dependent to outside information than runtime.
Who uses this old-school approach these days? A much more pythonic way to read/write files: from pathlib import Path print(Path(filepath).read_text(encoding="utf8")) # Bananas are berries.
impoirt
Consider Customtkinter instead - themes built in, "better" styling, premade common things. otherwise very similar to tkinter.
Theme doesn't even matter in this context, it defaults to your system file finder
Спасибо, вы мне помогли разобраться с EnvironmentObject
Isn't that the standard way thats taught
Valuable work! thanks.