02

Publicado em: 01 Abril 2025
no canal de: MF2Learn
129
6

02 #Python - Variables

CODE:

What are Variables?
Variables in Python are containers for storing data values.
Think of them as labeled boxes where you can put different types of information.
----------------------------------------------------------------------------
Key Concepts:
1. Variable Assignment : In Python, we use the `=` sign to assign a value to a variable.
2. Dynamic Typing : Python is dynamically typed, meaning you don't need to declare
the type of a variable explicitly.
3. Naming Conventions : Variable names should be descriptive and follow certain rules.
----------------------------------------------------------------------------
Variable Naming Rules:
1. Must start with a letter or underscore
2. Can contain letters, numbers, and underscores
3. Are case-sensitive
4. Cannot be Python keywords
----------------------------------------------------------------------------
Naming Variables
Good examples:
user_name = "Mohanad"
age_in_years = 30
_private_variable = "MF2Learn"
car = 'Toyota'
_myCar = 'Nissan'

Bad examples:
2nd_place = "Silver" # Can't start with a number
user-name = "Alice" # Can't use hyphens
class = "Python 101" # 'class' is a Python keyword
3cars = 'car1 car2 car3'
car1 = 'My car'

#---------------------------------------
Case-sensetive
age = 21
Age = 30
AGE = 48

print(Age)

WhatsApp : 009647812081244

#Python, #بايثون, #LearnPython, #تعلم_بايثون, #PythonForBeginners, #PythonProgramming, #برمجة, #Coding, #كود, #Programming, #برمجة_بايثون, #PythonTutorial, #تعلم_البرمجة, #PythonCourse, #كورس_بايثون, #CodingForBeginners, #برمجة_للمبتدئين, #DataScience, #تحليل_البيانات, #MachineLearning, #تعلم_الآلة, #AI, #ذكاء_اصطناعي, #Tech, #CodingLife, #كود_بايثون, #CodeNewbie, #مشاريع_برمجية, #مهارات_برمجية


Nesta página do site você pode assistir ao vídeo on-line 02 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário MF2Learn 01 Abril 2025, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 129 vezes e gostou 6 espectadores. Boa visualização!