Learning Variables in Python on Day 01 of #100DaysOfCode

Day01 of #100DaysofCode in Python #100DaysOfCode #Python #CodingJourney #Programming #LearningInPublic 📖 What I Learned #What is a Variable? $Variable:- In programming, a Variable is a named storage location of a memory that holds a value Example Message = "Hello, 100daysofcode!" print(Message) #Rules for Declaring Python Variables i) Variable names can contain only letters, numbers, and underscores. ii) A variable can start with a letter or an underscore, but not with a number Example:- we can start a variable message_1 but not 1_message iii) Spaces are not allowed in variable names, but underscores can be used to separate words in variable names Example:- "greeting_message" is a valid variable, but "greeting message" is not iv) Special Characters like @, #, $, %, and etc are not allowed to use as variable name v) Avoid using Python reserved keywords as variable and function names Tip: Variable names should be short and descriptive

  • graphical user interface, application

To view or add a comment, sign in

Explore content categories