linuxhint
linuxhint
  • 597
  • 5 331 842
Learn python programming as a beginner in 5 hours 56 minutes
In this course, we'll take you on a journey from understanding the basics of Python to mastering essential scripting concepts. Whether you're a complete novice or looking to brush up on your skills, this course is perfect for you!
Introduction -- 00:00
How to Install Python on Linux -- 06:40
First Python Program & Run it -- 08:37
Syntax & Indentation --12:18
Variables & Datatypes --16:00
Comments -- 26:34
Python Operators -- 31:37
If-Else Statments -- 57:06
Python Lists -- 01:06:09
Python Tuples -- 01:18:10
Python Sets -- 01:24:23
Python Dictionaries -- 01:38:02
Python Arrays -- 01:53:15
Loops in Python -- 02:08:02
Python Functions -- 02:23:35
Python Modules -- 02:38:35
Exception Handling in Python -- 02:50:45
Python Math -- 03:03:06
String Formatting (format()) -- 03:11:46
Python Iterators -- 03:28:33
Python Generators -- 03:38:20
Python Decorators -- 03:43:00
Python File Handling -- 03:55:01
Json (json.loads() & json.dumps) -- 04:08:32
Regular Expressions (RE module) -- 04:15:23
Python Input -- 04:36:17
Python Object Oriented Programming -- 04:45:36
Visit our site:
linuxhint.com
Watch our 3 hour bash scripting course:
ua-cam.com/video/e7BufAVwDiM/v-deo.html
Join this channel to get access to perks:
ua-cam.com/channels/HErB0TULAlldbhPMfBJ1Xg.htmljoin
Переглядів: 711

Відео

How to install Apache Cassandra on CentOS 8
Переглядів 682Рік тому
In this Video, we discussed How to install Apache Cassandra on CentOS 8 #Apache #Cassandra
How to Install and Use GIMP Photo Editor on Linux Mint
Переглядів 477Рік тому
In this video, we discussed How to Install and Use GIMP Photo Editor on Linux Mint #linux #mint
Building A Web Crawler Using Octoparse
Переглядів 534Рік тому
In this video, we discussed Building A Web Crawler Using Octoparse #Octoparse
Top Pycharm Plugins
Переглядів 1,3 тис.Рік тому
How to install plugins to enhance your Pycharm experience and review of some of the most interesting plugins
How to install the Tweak tool in Ubuntu 20.10$25
Переглядів 587Рік тому
In this Video, we discussed How to install the Tweak tool in Ubuntu 20.10$25 #tweak #tool
How to install and configure Wine on ubuntu 20.04
Переглядів 624Рік тому
In this Video, we discussed How to install and configure Wine on ubuntu 20.04
Using Google Search API With Python
Переглядів 715Рік тому
In this video, we discussed Using Google Search API With Python #python #API
How to install PlayOnLinux on Ubuntu
Переглядів 2,9 тис.Рік тому
In this video, we discussed How to install PlayOnLinux on Ubuntu #ubuntu
How to Run Memtest in Ubuntu 20.04
Переглядів 1,8 тис.Рік тому
How to Run Memtest in Ubuntu 20.04
How to Install Plex on Ubuntu 20.04
Переглядів 688Рік тому
How to Install Plex on Ubuntu 20.04
Top 5 Lightweight Web Browsers for Linux
Переглядів 7 тис.Рік тому
Top 5 Lightweight Web Browsers for Linux
How to Install Virtual Box on Ubuntu 20.04
Переглядів 175Рік тому
How to Install Virtual Box on Ubuntu 20.04
Install phpMyAdmin on Ubuntu
Переглядів 302Рік тому
Install phpMyAdmin on Ubuntu
Secure Your Notes in Linux with EncryptPad Text Editor
Переглядів 264Рік тому
Secure Your Notes in Linux with EncryptPad Text Editor
Linux System Programming | A Complete Beginner's Guide
Переглядів 9 тис.Рік тому
Linux System Programming | A Complete Beginner's Guide
Faenza Icons - Change Your GNOME Theme to A Chromatic Look
Переглядів 111Рік тому
Faenza Icons - Change Your GNOME Theme to A Chromatic Look
How to check Ubuntu version in bash
Переглядів 74Рік тому
How to check Ubuntu version in bash
Check and Update Ubuntu Kernel Version on Ubuntu 20.04
Переглядів 528Рік тому
Check and Update Ubuntu Kernel Version on Ubuntu 20.04
Install CentOS8 VirtualBox
Переглядів 72Рік тому
Install CentOS8 VirtualBox
MySQL Commands Tutorial
Переглядів 321Рік тому
MySQL Commands Tutorial
How to install Peek 1.5.1 on Ubuntu 20.04
Переглядів 102Рік тому
How to install Peek 1.5.1 on Ubuntu 20.04
How to add shortcuts to ubuntu desktop
Переглядів 4 тис.Рік тому
How to add shortcuts to ubuntu desktop
Kali Linux Nmap Guide
Переглядів 346Рік тому
Kali Linux Nmap Guide
How to Install Themes on Linux Mint
Переглядів 1,2 тис.Рік тому
In this Video, we discussed How to update your themes on Linux Mint to change the visual appearance and some best themes to try #visual #themes
Install WinUSB 1.0.11 on Ubuntu, CentOS - Make Bootable Windows USB Stick
Переглядів 373Рік тому
In this video, we discussed Install WinUSB 1.0.11 on Ubuntu, CentOS - Make Bootable Windows USB Stick #stick #WINUSB
Top 10 App launchers for ubuntu
Переглядів 283Рік тому
In this video, we discussed Top 10 App launchers for ubuntu #App #launchers #ubuntu
How to Install and Use Atom Text Editor on Linux Mint
Переглядів 1,7 тис.Рік тому
In this Video, we discussed How to Install and Use Atom Text Editor on Linux Mint #linux #mint
How to Install PeaZip 7.6.0 on Ubuntu 20.04 and Linux Mint 20
Переглядів 513Рік тому
In this video, we discussed How to Install PeaZip 7.6.0 on Ubuntu 20.04 and Linux Mint 20
Linux cat Command
Переглядів 252Рік тому
In this Video, we discussed Linux cat Command #Linux #command

КОМЕНТАРІ

  • @user-sd2cd2vj1f
    @user-sd2cd2vj1f 19 годин тому

    ❤ i want to know more about this

  • @kumarkumar-md7ee
    @kumarkumar-md7ee День тому

    thx mate!!!!

  • @carlaperry1170
    @carlaperry1170 5 днів тому

    Bb

  • @carlaperry1170
    @carlaperry1170 5 днів тому

    $ Ls -L

  • @unkolawdio
    @unkolawdio 6 днів тому

    It's being done to me,,I know who it is

  • @jaytoshkumar5634
    @jaytoshkumar5634 7 днів тому

    send me pdf sir

  • @user-vu6zk2uo5b
    @user-vu6zk2uo5b 8 днів тому

    Nice explanation. Truly. This data recovery software is excellent for retrieving lost files. It's easy to use and quickly recovers documents, photos, and other data with just a few clicks.

  • @DumDumGai
    @DumDumGai 21 день тому

    I can't believe there's a course like this on UA-cam! I've been trying to learn Linux for four years, and this finally seems like the perfect fit for my needs.

  • @RGUKT4EVER
    @RGUKT4EVER 21 день тому

    All are working properly 100% Thank you so much ❤

  • @AnjaliPatel-uw4tf
    @AnjaliPatel-uw4tf 21 день тому

    very nice sir, abhi jake mera concept clear hua, thank you

  • @TrinhucLongBDCVT-
    @TrinhucLongBDCVT- 22 дні тому

    Many courses fail to notice that writing at the bottom of the terminal page creates a difficult experience for the viewer needing translation

  • @shahsawar_afridi.0
    @shahsawar_afridi.0 24 дні тому

    plzzz Upload This same course in hindi please

  • @paradiseonearth2.0
    @paradiseonearth2.0 25 днів тому

    Sir, I have just watched a bit of this video. Do you think that after watching the complete video, I will be able to learn the skills of a Linux administrator, and will I be ready for a job as a Linux administrator?

  • @BruceLeaak
    @BruceLeaak 26 днів тому

    Selam Brother , The DECK STOP would be on a Ship i think ... The DESK is an Table ' so it's DESK TOP ( the top of an table ) u know ; ) hehe * But i know whole india says' DECK Stop ' but its not an Steamdeck hehehe

  • @charlesdean03
    @charlesdean03 27 днів тому

    its not complete dude linux has other package managers! so I dont even know why you write complete! rewrite the subject saying complete debian based linux administration bootcamp!!! This is pretty dumb and leads new guys wrong direction... some newbie will be thinking after this hey i can run linux and then handed an RHEL or worse Arch he will be like WTF lmfao

  • @forheuristiclifeksh7836
    @forheuristiclifeksh7836 29 днів тому

    0:07

  • @Code-sd3vl
    @Code-sd3vl Місяць тому

    Indian speaking english sounds very ridiculous, next time use subtitles, the world will thank you.

    • @lolimgamaya1983
      @lolimgamaya1983 Місяць тому

      Shut up

    • @humek7810
      @humek7810 26 днів тому

      Its not Indian accent.. It is Masjid chhap muslim accent... They use this kind of up and down so called melodic sentences while explaining their peaceful books.

  • @TakeyiAlexus
    @TakeyiAlexus Місяць тому

    super

  • @abhishekjohri498
    @abhishekjohri498 Місяць тому

    Hey There, do we have any real life scenarios on loops, conditions, nested loops and conditions? please revert , ready to pay for that also

  • @Pawan_Thathsara
    @Pawan_Thathsara Місяць тому

    Thanks a lot

  • @BradenBest
    @BradenBest Місяць тому

    malloc/calloc and free are not system calls. They're libc functions. The actual system call is typically sbrk, which requests the OS to expand (or shrink if the size is negative) the program's memory segment. Every call to sbrk works on the same boundary and thus the memory retrieved is all contiguous. Having a program get a bunch of contiguous memory and then trying to free it back is a headache because of fragmentation. For example, let's say you allocate 4 megabytes and assign it to a pointer called A, and then 2 bytes and assign it to a pointer called B. But now you're done with A and want to free it, but you still need B. How do you do that? The answer is it's impossible. If you were to roll back the 4MB you allocated for A you would end up freeing B in the process, and then you'd have 2 bytes of A unaccounted for. You've just leaked memory, and what's worse is that B is now a dangling pointer, and if you try to use it, that's undefined behavior. allocated: [AAAAAAAABB] after sbrk free: allocated: [AA], freed: [AAAAAABB] ^ leaked ^ invalid This type of memory management works fine in a stack frame, which is where functions get the memory for local variables, since the variables are automatically allocated and freed in bulk. But for dynamic objects where the order and quantity of allocations are unpredictable, you're going to have fragmentation, and therefore need a way to, somehow, keep track of the memory obtained through sbrk so that it can be freed back to the OS at some point. It's also worth pointing out that system calls are slow because they require switching execution to a kernel mode context, and this switch in and out of kernel mode takes time, so spamming sbrk calls is also terrible for performance. This is where malloc/free come in. Malloc will call sbrk only when necessary but otherwise will allocate in bulk and carve out chunks of memory per request. Each call to malloc actually uses a little more than the amount requested, because it inserts its bookkeeping data structures into the memory it's managing. So say you call malloc requesting 6 bytes of memory, it'll look through its bookkeeping structures (which I will call "memory nodes" from now on) to see if it can find a chunk of free memory that's 6 or more bytes in size. If it doesn't find it in any of the pools it's managing, it'll allocate another pool or buffer using sbrk that's, say, 4KiB in size, and then carve the 6 bytes + node from that. If it finds it in the existing memory, it'll insert another node right after the segment of memory it's about to return accounting for the remainder, adjust the size recorded in the original node to 6 bytes, and then mark the chunk as used and return the address to it. If a bookkeeping node is 16 bytes, that means you'll typically see it returning (node + 16). When you free memory back to malloc, it takes that pointer, subtracts or adds a fixed offset to get to the bookkeeping node (node = ptr - 16), marks it as free, and then attempts to combine it with adjacent free nodes. It will then check the whole pool to see if it only has one free node and is the most recent pool to be allocated, and if both of these conditions are true, then it calls sbrk with a negative size to return all the memory at once. As you can see, calling free does not guarantee that the memory is actually freed to the OS. Memory is only freed when there is no fragmentation in a contiguous chunk that malloc is tracking. But malloc's job is to buffer sbrk calls and manage fragmentation. malloc is not a system call. This should also help explain why double freeing is illegal (malloc expects there to be a bookkeeping node near the pointer, and if it got overwritten with garbage, then calling free on that pointer, which will lead free to a node with an unknown size, will wreak havoc), why free can only accept pointers generated by malloc (malloc generates the pointers based on the bookkeeping nodes. Giving it any other pointer than NULL or a malloc'd pointer will result in it treating unknown memory as a bookkeeping node), and why it's a bidea to mix malloc and sbrk calls. If you're going to write your own malloc, for example, then don't use libc malloc. You can't know how malloc manages memory, and if it assumes that all of its memory is contiguous and just appends nodes at the end when it allocs memory, then calling sbrk between malloc calls would break the program, leaking memory at best or causing a crash at worst. A bookkeeping structure might look like this: struct memnode { size_t size; int flags; // USED, ISFIRST, ISLAST, ISSTATIC, etc }; There are two models you can use. The first is to not assume that the bulk pools or buffers obtained from sbrk are contiguous with each other (you can assume the pools are self-contiguous, just not contiguous with other pools), this requires more memory per node to account for the different linked lists it needs to maintain, and is also generally slower, cause, for example, to free memory back, you'd have to go through the "up-list" to get to the last item, check if it's all free, free it, then check the next one down. It can also be faster due to the fact that pools are only ever freed all at once since they are kept separate. The second is to assume that nobody else is calling sbrk and take ownership of it, assuming that all the pools are contiguous. This means that every pool is appended to the end of the list and we can just work backwards from the end to free memory, and the nodes use less memory since they only have to track the size and tags. but the drawback is that there will be more calls to sbrk overall. Conserving memory takes higher priority so generally, you will see implementations of malloc opting for the latter. One further optimization you could do when using the contiguous pools model is to track the size of the entire pool separately, as well as having pointers to the first and last node. You might also opt to allocate a static char array of a certain size like 16384 so that programs that only do small allocations get memory much faster. static size_t pool_total_size; // cumulative size of all dynamic pools static void * first_node; // use void * to avoid pointer arithmetic shenanigans static void * last_node; static char static_pool[16384]; // static pool to avoid having to use sbrk right away static int static_pool_too_full; // set this to 1 the first time the allocator fails to find enough memory in the static pool. Set to 0 when freeing static pool memory

  • @user-zf7pp8xu7b
    @user-zf7pp8xu7b Місяць тому

    still not getting it

  • @sergetshivuadikalala3789
    @sergetshivuadikalala3789 Місяць тому

    The background sound is very annoying. I stopped watching because of that.

  • @slowcoding
    @slowcoding Місяць тому

    Do we need to define the function pointers inside struct? Is it better just to use the function with the instance without the funciton pointer?

    • @kozmicluis2552
      @kozmicluis2552 25 днів тому

      I mean most libraries avoid function pointers to simulate methods, they just prefix function names with the name of the structure or class; for example in Gtk, to operate on a widget struct of type window: #include <gtk/gtk.h> GtkWidget *window_pointer = gtk_application_window_new(<ARGS>); gtk_window_method_name(window_pointer, <ARGS>); Is an idiom for what in OOP you'd implement as namespace Gtk { class Window extends Widget { void method_name(<ARGS>) { ... } } } Widget window = WidgetFactory.create_window(<ARGS>); window.method_name(<ARGS>); --- In C, generics are achieved with casting void pointers (void *ptr_name) to the desired struct type pointer.

  • @gomo5628
    @gomo5628 Місяць тому

    How can I retrieve data from Sq;l and then write it to file without erasing the file content that was already there?

  • @bostonboy6177
    @bostonboy6177 Місяць тому

    Why can I see anything in the more... fields

  • @jopadjr
    @jopadjr Місяць тому

    3.2k+...This is gonna be a great journey. Thanks

  • @IstadR
    @IstadR Місяць тому

    Sorry, to much wrong information in the beginning for me to want waching this for 6 hours. Stuff like BIOS and MBR, both replaced for almost 20 years ago. LILO, LInux LOader, not last in last out. Then showing commands with uppercase letters that should be lowercase.

  • @alfredmiles432
    @alfredmiles432 Місяць тому

    Sick of bill gates windows Want a new life

  • @ghostkee5031
    @ghostkee5031 Місяць тому

    guys... 6 hours.. total waste of time.. and painful to hear an Indian accent for 6 hours.. as a Lunix pro.. I advice you to just read online resources and follow along

    • @humek7810
      @humek7810 26 днів тому

      Its not Indian accent.. It is Masjid chhap muslim accent... They use this kind of up and down so called melodic sentences while explaining their peaceful books.

    • @ghostkee5031
      @ghostkee5031 25 днів тому

      @@humek7810 no one asked for your opinion

  • @angryjordan9206
    @angryjordan9206 Місяць тому

    Bro yappin

  • @Dhruv_rathee_AAP_ITCell
    @Dhruv_rathee_AAP_ITCell Місяць тому

    Indian Assemble 😎

  • @chirayushah1608
    @chirayushah1608 Місяць тому

    TL;DR, This is a wrong example of memory leaks. The pointer variable is stored in the stack part of memory, the memory for the variable is automatically "freed" after the function returns. Long explanation: This isn't a memory leak because the pointer variable created has automatic storage duration, meaning the memory for the pointer variable is stored in the stack memory segment not the heap. After the function returns the memory for all automatic storage duration variables (in this case ptr and number) are "automatically freed" (this is however different for static variables, they have static storage duration, they are stored in data segment of the memory and stay there until the program exits if I'm not mistaken). If you use malloc or calloc to assign memory from the heap segment and return **without** using free() then it will cause a memory leak. If you are running linux you can use valgrind to find memory leaks in your program. I don't know if WSL has support for that yet or not.

  • @zvibeexz7191
    @zvibeexz7191 Місяць тому

    Are u by any chance indian ?? Dont mind how i came to this

  • @Francis-np7ft
    @Francis-np7ft Місяць тому

    God bless you anywhere you are!!

  • @luckyoggog
    @luckyoggog Місяць тому

    🥰

  • @angelo59br
    @angelo59br Місяць тому

    Apesar de um pouco complicado para iniciantes, o google drive está instalado corretamente.

  • @GTheo.
    @GTheo. Місяць тому

    And what about when you visite an infected site like pornsites?

  • @k-popXstanGirl
    @k-popXstanGirl Місяць тому

    Very informative

  • @user-om4hf4sl8c
    @user-om4hf4sl8c Місяць тому

    nice

  • @IUBthings
    @IUBthings Місяць тому

    Whats the roadmap to become system admin(linux) to get job ready

  • @slavnaUkrainaa
    @slavnaUkrainaa 2 місяці тому

    Windows will win

  • @jadurbox
    @jadurbox 2 місяці тому

    Give me this code, plz

  • @rishiraj2548
    @rishiraj2548 2 місяці тому

    🙏👍

  • @senthilmuruganr234
    @senthilmuruganr234 2 місяці тому

    Nice lecture

  • @zekarou7831
    @zekarou7831 2 місяці тому

    I have tried both and compare. If you have old machine, LUBUNTU is the better and lighter option.

  • @iampradippp
    @iampradippp 2 місяці тому

    Thank you ❤

  • @RekkoWorld6209
    @RekkoWorld6209 2 місяці тому

    def clear_screen() os.system('cls' if os.name=='nt' else 'clear') I just use this 😂😂😂😂

  • @XerveFork
    @XerveFork 2 місяці тому

    also me

  • @964cuplove
    @964cuplove 2 місяці тому

    I would like to create a folder structure in a project folder. so far quite easy following the steps you provided, however the project folder should start with a date and then have Customer and project in the name. A bit like "JJMMDD customername projectname" so how xoulöd I a) get that date string and b) combine varius strings into one folder name ?