Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Variable in Python

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 304
    Comment on it

    variable: A named piece of memory that can store a value.
    Usage:
    Compute an expression result,
    store that result into a variable,
    and use that variable later in the program.

    assignment statement: Stores a value into a variable.

    Syntax:

            name = value
          x = 5
                    gpa = 3.14
    
         x   5         gpa    3.14 
    
    A variable that has been given a value can be used in expressions.
            x + 4 is 9

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: