Created
March 29, 2018 06:11
-
-
Save shabbirbhimani/b61f304e51477ce70bd44e0a31a7bfbc to your computer and use it in GitHub Desktop.
4.8 Assigining Multiple values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assigning multiple values at a single time | |
project1Budget = project2Budget = project3Budget = 1400 | |
# 3 variables are created with same value | |
print("project 1 budget is", project1Budget) | |
print("project 2 budget is", project2Budget) | |
print("project 3 budget is", project3Budget) | |
# You can assign multiple value in multiple places | |
name, gender, age = "Ron", "Male", 25 | |
# 3 variables are created with 3 different values | |
print("name is", name) | |
print("gender is", gender) | |
print("age is", age) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment