welcome to crazy coding stuffs 

For Beginners in python 


    hey, there lets talk about some more concepts about python 😎

     Remember!!!

    " do you know, In python everything is considered as object"

     lets know about variables in python...


                                             what is variables in python???

   "variables in python is a reserved memory locations to store the values" 

      syntax:

                   variable=value.

       Ex:

             x=10 -> here 'x' is variable and '10' is value 

             y=20 ->here 'y' is variable and '20' is value        


      Actually, there are some Rules  that  we have to follow while declaring a variables.      

  1. python variables is also known as "Identifiers" and used to hold the values.
  2. In python we don't need to specify the type of variable because python is infer language and smart enough to get variable type
  3. variables names can be group of both the Letters and Digits, but they have to begin with a Letter or Underscore                             
  4. It is recommended to use Lowercase letters for the variable names.   
  5. In python language all the Keywords are in Lowercase except ''None'' ,''True'' and ''False''
  6. variables are case sensitive
     examples:
     
     exam.py

      x=10

      print("The value of x is:" ,x)



      output: The value of x is : 10

     if you want to read the value of a variables from user means, you have to follow below step:

     exam1.py

     var_1=int(input("Enter the integer value/n")

     var_2=float(input("Enter the Floating value/n)

     var_3=input("Enter your Name/n) 

     print("The value of Integer is :-> " , var_1)

     print("The value of Float is :-> , var_2)

     print("My name is :->,var_3)


 output:

     Enter the integer value: 10

     Enter the floating value: 10.10

     Enter your name: Ravikumar


   The value of integer is : 10

   The Value of float is : 10.1

    My name is : crazy

  

                                        what is Identifiers ???


   "Identifiers are nothing but Name given to Element of the program like         Variable name, Function Name, Module Name , Task Name ."

    

   The Identifiers used to recognize the element of the program.

   here also we have some Rules to follow while defining a Identifier.


  1. The first Character of the Variable must be an Alphabet or Underscore (_)
  2. All the Characters except the first character may be an alphabet of lowercase(a-z)          ,uppercase(A-Z), underscore, or Digit(0-9)
  3. Identifier Name must not contain whitespace or special Character(!,@,#,%,&,*)
  4. Identifier Name must not be similar to any keyword defined in the language.
  5. identifier Names are case sensitive Ex: myname,MyName is not the same .
  6. keywords can't be used as identifiers. 
      
       ex: a=100 -> here 'a' is given name to the variable (Identifier)
                           variable refers to memory location ,it has its own Address 


      comparison between variable and identifiers

           





Comments