#52 Python Tutorial for Beginners | Types of Variables

///#52 Python Tutorial for Beginners | Types of Variables

#52 Python Tutorial for Beginners | Types of Variables

FavoriteLoadingAdd to favorites

Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist :
Python Tutorial in Hindi :

Editing Monitors :

Check out our website:

Follow Telusko on Twitter:

Follow on Facebook:
Telusko :
Navin Reddy :

Follow Navin Reddy on Instagram:

Subscribe to our other channel:
Navin Reddy :
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20

source

By |2019-08-23T22:18:56+00:00August 23rd, 2019|Python Video Tutorials|48 Comments

48 Comments

  1. Prathamesh Munj August 23, 2019 at 10:19 pm - Reply

    init self is compulsory to use??

  2. Piyush Gupta August 23, 2019 at 10:19 pm - Reply

    Sir what if we say
    car.mil=9
    Will it vhange for mil to 9 for every instance variable

  3. Mrinmoy Dey August 23, 2019 at 10:19 pm - Reply

    don't understand the difference between methods and constructor

  4. Anas Raza August 23, 2019 at 10:19 pm - Reply

    i have a qs related to variables access specifier
    should we use public instance variables or private ones then use getters and setters?
    which approach is good in python?

  5. Mascot Academy August 23, 2019 at 10:19 pm - Reply

    Do you people have paid/ advanced tutorials on Django or other python languages?

  6. uma sanodiya August 23, 2019 at 10:19 pm - Reply

    Great sir ji 🀘

  7. MOHAMMED AZHAR August 23, 2019 at 10:19 pm - Reply

    Thank you sir

  8. Mascot Academy August 23, 2019 at 10:19 pm - Reply

    You are a great teacher. Keep it up please

  9. sidhant khanna August 23, 2019 at 10:19 pm - Reply

    bangged again sir

  10. Rajesh Raut August 23, 2019 at 10:19 pm - Reply

    πŸ––

  11. Rohith kumar August 23, 2019 at 10:19 pm - Reply

    I used
    c1.wheels=10
    And it affected only c1.wheels, not c2.wheels and car.wheels…

    After, If we use car.wheels=5, it affects car.wheel and c2.wheels and not c1.wheels

    When i use c2.wheel=30, it affects only c2.wheels,… This means it creates new space when changing values specifying object name like c1.wheels and c2.wheels

  12. Vasudeva Reddy August 23, 2019 at 10:19 pm - Reply

    Starting Music is good, loved it

  13. Rajib Guha August 23, 2019 at 10:19 pm - Reply

    fatafati

  14. Harsh Nagpal August 23, 2019 at 10:19 pm - Reply

    2:40 the main difference

  15. Pun -genius August 23, 2019 at 10:19 pm - Reply

    wow , navin sir you have got a huge fanbase , no dislikes on this video at all

  16. Avi Nash August 23, 2019 at 10:19 pm - Reply

    masss

  17. sairam malempati August 23, 2019 at 10:19 pm - Reply

    class car :

    def __inti__(self):

    self.mil = 25

    self.com ="BMW"

    c1 = car()

    c2 = car()

    print(c1.mil , c2.com)

    output :
    —————————————————————————

    AttributeError Traceback (most recent call last)

    <ipython-input-192-58cb20c837ec> in <module>()

    6 c1 = car()

    7 c2 = car()

    —-> 8 print(c1.mil ,c2.com)

    9

    AttributeError: 'car' object has no attribute 'mil'

    please some help me to solve it
    same piece of code working for navin sir

  18. Shatakshi Sharma August 23, 2019 at 10:19 pm - Reply

    Pycharm says
    Type error: student() takes no arguments?
    What to do?

  19. Shatakshi Sharma August 23, 2019 at 10:19 pm - Reply

    It says car object has no attribute com? For 1st and 2nd programme you have written.

  20. Mohiseen Shaik August 23, 2019 at 10:19 pm - Reply

    If I want to call only the wheel size of a particular object then how to call it ? for example if we want to call only for object c1 then how?

  21. Think Shrewd August 23, 2019 at 10:19 pm - Reply

    Give lot of salary to your graphic designer..its amazingπŸ˜€πŸ˜€

  22. Vasu Babu Sirigibattula August 23, 2019 at 10:19 pm - Reply

    Simple and perfect explanation

  23. ADARSH Kanojia August 23, 2019 at 10:19 pm - Reply

    Sir y u stop making videos on python…pls. continue

  24. fahmi sahnoun August 23, 2019 at 10:19 pm - Reply

    Dear
    I tried to change c1.wheels and after that Car.wheels as following code

    class Car:

    wheels =4

    c1= Car()
    c2= Car()

    c1.wheels=5

    Car.wheels =9

    print (c1.wheels)

    print(c2.wheels)

    and the results is
    5
    9

    why Car.weells=9 doesn't change the value for c1 !!!
    normally it's a class variable and should apply to all objects !

  25. Dinesh Suthar August 23, 2019 at 10:19 pm - Reply

    I have a doubt…..

    class Book :

    x=2500

    def __init__(self):
    self.y = 20
    self.z = 30

    b1 = Book()

    b2 = Book()

    b1.x=3600

    print( b1.x)

    b2.x=2000

    print( b2.x)

    Book.x = 4200
    print(b1.x)

    print(b2.x)

    OUTPUT IS
    3600
    2000
    3600
    2000

    but after using Book.x = 4200
    last two output must come 4200 but it is giving 3600 and 2000
    Please someone explain

  26. sindhu basavanna August 23, 2019 at 10:19 pm - Reply

    master of python!!!!

  27. Python Developer August 23, 2019 at 10:19 pm - Reply

    Sir what did this means:
    class App(tk. Frame) :
    def __init__(self, master)
    tk. Frame. __init__(self,master)
    I cant understand the last line!

  28. julie August 23, 2019 at 10:19 pm - Reply

    u r my CS god

  29. Shashikant Chaudhary August 23, 2019 at 10:19 pm - Reply

    class Cars:
    wheels = 4

    def __init__(self):
    self.mil = 10
    self.com = "BMW"

    c1=Cars()
    c2=Cars()

    c2.wheels=5
    Cars.wheels=55
    print(c1.wheels)
    print(c2.wheels)

    OUTPUT
    55
    5

    EXPECTED OUTPUT
    55
    55

    Please explain

  30. Shubham Raja August 23, 2019 at 10:19 pm - Reply

    C1.wheels = 5(suppose)
    It will make change only for c1 object.
    If cars.wheels =5 will change for all object of that class…so how we can say that "wheels" is a "static" variable…and pls tell us what's happening behind the scenes ?

  31. ahmed magdi August 23, 2019 at 10:19 pm - Reply

    the best video <3

  32. peanut brittle August 23, 2019 at 10:19 pm - Reply

    Hello Sir I am very confused with one of the tutorials I've seen previously. Currently, I am learning how to work with tkinter, Python Gui and then there's this youtube vid about it and he wrote it this way

    from tkinter import *

    class buckyButtons:

    def __init__(self, master):
    frame = Frame();
    frame.pack()
    self.button1 = Button(frame, text ="Click Me")
    …. ( the following variables have self. Before the name)

    What I just don't understand was, why is it not self.frame… it's Programming knowledge video tkinter

  33. kosmic dust August 23, 2019 at 10:19 pm - Reply

    world class instructor <3

  34. Adarsh Yadav August 23, 2019 at 10:19 pm - Reply

    Sir, I have a doubt
    at 4:34 in video
    if i write c1.wheels=100, then value of "wheels" only change for c1 not c2, then why we will call it class variable but not instance variable.

  35. ashish sinha August 23, 2019 at 10:19 pm - Reply

    Sir when you are going to upload next videos sir ???

  36. balu balaji August 23, 2019 at 10:19 pm - Reply

    I'm done with the series and waiting for the upcoming videos and please post them asap Naveen garu..thank you

  37. Kim Sung August 23, 2019 at 10:19 pm - Reply

    This guy speaks too fast. You have to really be attentive and listen in order to understand what he says

  38. Ankit Jain August 23, 2019 at 10:19 pm - Reply

    Sir plz Hindi main video Banaya karo

  39. Sharyar Khan August 23, 2019 at 10:19 pm - Reply

    Hello sir please describe how to python embedded with microcontroller???

  40. saran ya August 23, 2019 at 10:19 pm - Reply

    Sir Thanks for the python tutorial series :)I am started learning python from your series You are the best sir.

  41. Black Hole August 23, 2019 at 10:19 pm - Reply

    Telusko answer my question please. Is Java going to replace Python in machine learning?
    Java 9 supports REPL, which means Java now is a prototyping language just like Python.
    Additionally, Java is even better than Python in production. The only missing link is the
    maturity of machine learning libraries in Java. So do you think Java will replace Python?

  42. Gagan Sehra August 23, 2019 at 10:19 pm - Reply

    thanks sir for teaching us in such a wonderful way

  43. PAPA CHOUDHARY August 23, 2019 at 10:19 pm - Reply

    Thanks

  44. CHINMAY DAS August 23, 2019 at 10:19 pm - Reply

    Sir now your videos are much better bcz you are teaching programming not programming languages.. which is very rare πŸ™πŸ™πŸ™..

  45. kuruva malappa August 23, 2019 at 10:19 pm - Reply

    Good sir

  46. Bareera Khan August 23, 2019 at 10:19 pm - Reply

    Thank you sir you are awesome

  47. brij kishor August 23, 2019 at 10:19 pm - Reply

    Sir aapke sir ke Baal kyu nhi ugg the haiπŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚

  48. Soumyaranjan Mohanty August 23, 2019 at 10:19 pm - Reply

    Awesome πŸ‘

Leave A Comment

*