+ 7

How to declare veriable in python

20th Oct 2017, 2:35 AM
JAMILA SIDDIQUI nice
JAMILA SIDDIQUI nice - avatar
3 odpowiedzi
+ 8
a = "Hello" b = "World"
20th Oct 2017, 2:39 AM
qwerty
qwerty - avatar
+ 7
with the help of these wecan declare a veriable like these a=spam b=eggs
20th Oct 2017, 2:46 AM
JAMILA SIDDIQUI nice
JAMILA SIDDIQUI nice - avatar
+ 3
there is no declairation of variable in python... initialisation includes declairisation... like... in c-----> int a; a=5; is equivalent to.. in python-------> a=5 but when you are doing global declairisation in a function of python ...then u need to declair first then initialise... like.... global a a=5
20th Oct 2017, 3:51 AM
sayan chandra
sayan chandra - avatar