90 likes | 102 Views
This presentation will help you learn a fundamental topic, i.e., variables in Python. You will understand what is a variable and how to create variables in Python. You will get an idea on how Python stores data using variables and look at object references. You will see the important rules for Python variables and understand variables in Python with hands-on demonstration.<br><br>Below are the topics that you will learn in these variables in Python presentation:<br><br>1. What is a Variable?<br>2. Object References in Python<br>3. Rules for Python variables<br>4. Python variables demo
E N D
What’s in it for you? What is Variable? Object references Rules for Python variables
Variable Variables are containers for storing data values x = “Audi" Python allows you to assign values to multiple variables in one line: x, y, z = “Audi", "BMW", “Mercedes"
Object references Variable object a=50 50 a
Object references a=50 b=a Variable Variable object 50 b a
Object references a= 50 b=100 object object Variable Variable 50 a 100 b
Rules for Python variables A variable name must start with a letter or the underscore character A variable name cannot start with a number A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ) Variable names are case-sensitive (date, Date and DATE are three different variables) • There are several techniques to write multi words variable • Camel case • Pascal case • Snake case
Join us to learn more! simplilearn.com UNITED STATES Simplilearn Solutions Pvt. Limited 201 Spear Street, Suite 1100 San Francisco, CA 94105 Phone: (415) 741-3319 INDIA Simplilearn Solutions Pvt. Limited #53/1C, 24th Main, 2nd Sector HSR Layout, Bangalore 560102 Phone: +91 8069999471 UNITED STATES Simplilearn Solutions Pvt. Limited 801 Corporate Center Drive, Suite 138 Raleigh, NC 27607 Phone: (919) 205-5565