Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shabbirbhimani/b61f304e51477ce70bd44e0a31a7bfbc to your computer and use it in GitHub Desktop.
Save shabbirbhimani/b61f304e51477ce70bd44e0a31a7bfbc to your computer and use it in GitHub Desktop.
4.8 Assigining Multiple values
# 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