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
    • 332
    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:

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

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: