[Hindi] if __name__ == "__main__" in python explained | Advanced python in Hindi

In this video, I have explained about the basics of if name == main in python. I hope you will like the way I explained it. Make sure to add a comment and tell me if you like the video!

#tut1a.py file as described in the video

import os
def mostimpfunction():
    print("harry is a coder")

print(__name__)

def main():
    print(os.listdir("/"))
    print("Harry is great and he is the king of US")

if (__name__=="__main__"):
    main()

#tut1b.py file as described in the video

import tut1a
tut1a.mostimpfunction()
tut1a.main()

Comments(31)

root2 1 year ago
this is amazing harry bhai
tejaslade 11 months ago
.
Urmil 1 month, 2 weeks ago
amazing content harry bhai
milindeac 1 year ago
i have a query why from tkinter import * is not working in spyder IDE is ther any solution for this
sg330 3 months, 3 weeks ago
nh
pritish0101 2 months, 4 weeks ago
Simply  use VS Cod
pritish0101 2 months, 4 weeks ago
*e
tejaslade 11 months ago
1
tejaslade 11 months ago
1
Anirudh 10 months ago
Harry Bhai Mujhe Python me thode doubt hi Kay me pooch saktha hu
jeevan 9 months, 3 weeks ago
demo
RohanDas28 8 months, 2 weeks ago
Amazing Bhai
harry 8 months, 2 weeks ago
Thanks bhai!
ParisHacker 6 months, 1 week ago
Ye Rohan
yogeshsss 3 months, 1 week ago
hey
ParisHacker 6 months, 1 week ago
<b>Hello Harry Bhai</b>
ParisHacker 6 months, 1 week ago
</pre><b>Hello Harry Bhai</b>
ParisHacker 6 months, 1 week ago
<img src onerror="alert('hello Harry Bhai')">
bk 5 months, 1 week ago
awesome video harry bro..
A.Basit 4 months ago
gr8 job, keep it up!
sg330 3 months, 3 weeks ago
this is awesome
yogeshsss 3 months, 1 week ago
well
pritish0101 3 months ago
Awesome Course
zeeshan 2 months, 4 weeks ago
hello
zeeshan 2 months, 4 weeks ago
zxdfhjsdahf
zeeshan 2 months, 4 weeks ago
sadasdfsa
zeeshan 2 months, 4 weeks ago
sdfsdf
aqaaaa 2 months, 1 week ago
<
aqaaaa 2 months, 1 week ago
<img src onerror='alert('Msg')'/>
iam_imran313 1 month, 4 weeks ago
bhai mujhe ek programing code milega
Talha1818 1 month, 3 weeks ago
sb milega yahan

Resources

  1. File - Download here
  2. File - Download here
  3. File - Download here
  4. File - Download here
  5. File - Download here
  6. File - Download here
  7. File - Download here
  8. File - Download here

Course Announcements

Any Course related announcements will be posted here