Variable ID and variable are two different things. (ID provide memory location) if the vlue is same for two variables python memory manager only create one object with two references. Best practice is to keep variable names unique as possible to avoid complications.
Good lesson. 👍🕵️♂️🕵️♀️
වටිනවා ස්තූතියි sir
Keep going sir
Thank you sir❤
great job,,,
saddenam madi,,
thank you
great
ela ela bro
you are a grate teacher
hard lesson.good teaching
ethakota sir, capital / simple bedayak nadda?
Variable kipayak ekapelata liyaddi coma dala space thiyanawada
Yes you can.
Ex-
a,b,c =1,2,3
print(b)
Ethakota sir variable name widiyata ekama de thawa parak hodana kota
Name1
Name2 දාන්නේ නැතුව
Name
name මෙහෙම යොදන්න ඇහැකිද? 🙄
එනම නමින් variable කිහිපයක් හදන්න පුළුවන් නේද ?
name = "sanath"
print (name)
print(id(name))
name = "lakmal"
print(name)
print(id(name))
output
sanath
15392064
lakmal
15460192
Process finished with exit code 0
Variable ID and variable are two different things. (ID provide memory location) if the vlue is same for two variables python memory manager only create one object with two references. Best practice is to keep variable names unique as possible to avoid complications.
එකම විචල්ය නාමයට අගයන් 2ක් අදෙශ කරන්න පුලුවන් බැරි නැ නේ.
Ex:-
Name,city = "sanath","colombo"
Name="kamal"
print (Name,city)
Output👇
Kamal colombo
ඔව් නේද අන්තිමට ආදේශ කරපු එක අවුට්පුට් එක වෙනව ඇති🤔
@@sadeepmihiran6610 ow error ekak enne na kiyannema puluwan
ua-cam.com/video/3dpJrMtxYeo/v-deo.html
Thank you sir❤❤❤