02

Pubblicato il: 01 aprile 2025
sul canale di: 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, #مشاريع_برمجية, #مهارات_برمجية


In questa pagina del sito puoi guardare il video online 02 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato MF2Learn 01 aprile 2025, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 129 volte e gli è piaciuto 6 spettatori. Buona visione!