Indently
Indently
  • 837
  • 27 527 724
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
Переглядів: 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?
This is very convenient in Python
Переглядів 16 тис.Місяць тому
This is very convenient in Python
Python's "methodcaller" is very useful
Переглядів 24 тис.Місяць тому
Python's "methodcaller" is very useful
Python's 5 Worst Features
Переглядів 100 тис.2 місяці тому
Python's 5 Worst Features
Python's "itemgetter" is very useful
Переглядів 44 тис.2 місяці тому
Python's "itemgetter" is very useful
All 39 Python Keywords Explained
Переглядів 118 тис.2 місяці тому
All 39 Python Keywords Explained
NEW PyCharm Features (2024 Update)
Переглядів 15 тис.2 місяці тому
NEW PyCharm Features (2024 Update)
5 Useful Dunder Methods In Python
Переглядів 53 тис.2 місяці тому
5 Useful Dunder Methods In Python
Is "finally" Useless In Python?
Переглядів 50 тис.2 місяці тому
Is "finally" Useless In Python?
5 Tips To Write Better Python Functions
Переглядів 93 тис.2 місяці тому
5 Tips To Write Better Python Functions
5 Random Useful Python Functions
Переглядів 19 тис.2 місяці тому
5 Random Useful 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)
3 Bad Python Habits To Avoid
Переглядів 48 тис.3 місяці тому
3 Bad Python Habits To Avoid
5 Uncommon Python Features I Love
Переглядів 133 тис.3 місяці тому
5 Uncommon Python Features I Love
5 Good Python Habits
Переглядів 393 тис.4 місяці тому
5 Good Python Habits
It finally happened!
Переглядів 10 тис.4 місяці тому
It finally happened!
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)
If Python was an anime...
Переглядів 3,9 тис.4 місяці тому
If Python was an anime...
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

КОМЕНТАРІ

  • @davidgillies620
    @davidgillies620 14 годин тому

    You should always try for RAII-like behaviour, if it's a paradigm that fits in your language's syntax.

  • @user-vc2pm5xv7s
    @user-vc2pm5xv7s 14 годин тому

    But then the variable should not be named i.

  • @hodsinay6969
    @hodsinay6969 14 годин тому

    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

  • @__mmars
    @__mmars 15 годин тому

    you're an angel!!!!!!!!!! tysmmm

  • @DotNetFun
    @DotNetFun 15 годин тому

    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

  • @dusrasarthakaglawe-lg6ex
    @dusrasarthakaglawe-lg6ex 16 годин тому

    will ddos script work in this

  • @Veryprogamer123
    @Veryprogamer123 19 годин тому

    UHHH METH?

  • @laytonjr6601
    @laytonjr6601 19 годин тому

    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

    • @laytonjr6601
      @laytonjr6601 19 годин тому

      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

  • @orcofnbu
    @orcofnbu 20 годин тому

    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.

  • @neuromorphing9933
    @neuromorphing9933 21 годину тому

    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.

  • @au1368
    @au1368 22 години тому

    impoirt

  • @markschafer1457
    @markschafer1457 23 години тому

    Consider Customtkinter instead - themes built in, "better" styling, premade common things. otherwise very similar to tkinter.

    • @Indently
      @Indently 23 години тому

      Theme doesn't even matter in this context, it defaults to your system file finder

  • @sashlandia
    @sashlandia 23 години тому

    Спасибо, вы мне помогли разобраться с EnvironmentObject

  • @Dan-The-Menace
    @Dan-The-Menace День тому

    Isn't that the standard way thats taught

  • @GAUTAMSHARMA-xu7bl
    @GAUTAMSHARMA-xu7bl День тому

    Valuable work! thanks.