# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A
my_name = "your name here "# you can add perenthisis
print(my_name)
#single name variable
name = "Your name"
#recomended naming of compound or multiple names are seperated by underscore _
some_variable_name = "Name of the the variable"
#creating variable in python
a = 15 #it is called integer
b = 'apple' #any word or number written in this "" is called string
c = False #True or False is called boolean
d = 2.45 #any number with point is called float
print(a)
print(b)
print(c)
print(d)
#it will print all the values
// no need to define variables explicitly like in java or c++
// we need to define them in __init__ method that creates, this i8s the key
// __init__ basically it's constructor
// instance variables for the current object self( which denotes your created instance)
class A:
def __init__(self,d):
self.d=d
//above automaticaaly creates an instance variable d for you class object
hence
ob=A(4)
// creates object ob with 1 instance variable d initialised to 4
ALSO NOTE:
// in python there is no distinction between pointer variable and
// normal variable we use same syntax for both unlike c++
// so how python distinguishes b/w a reference and normal var?
// by seeing what is being assigned to it on RHS