Lesson 2 of 6
Variables: மதிப்புகளைச் சேமித்தல்Variables: Storing Values
7 min 20 XP
Variable என்பது ஒரு மதிப்பை (value) சேமித்து வைக்கும் பெட்டி போன்றது. = குறி மூலம் அந்தப் பெட்டியில் மதிப்பை வைக்கிறோம்.
A variable is like a box that stores a value. We put a value into the box using =.
Example: edit me and press Run
Press Run to see the result here.Variable-ன் மதிப்பை எப்போது வேண்டுமானாலும் மாற்றலாம். print()-ல் comma (,) பயன்படுத்தினால், மதிப்புகளுக்கு இடையே தானாக ஒரு space வரும்.
You can change a variable's value at any time. Using a comma (,) inside print() adds a space between values automatically.
Example: edit me and press Run
Press Run to see the result here.Variable பெயர்: எழுத்துகள், எண்கள், _ மட்டும். எண்ணில் தொடங்கக் கூடாது, space இருக்கக் கூடாது. name மற்றும் Name இரண்டும் வெவ்வேறு variables.
Variable names: letters, numbers and _ only. They can't start with a number or contain spaces. name and Name are different variables.