Python multiple assignment tutorial example explained
#python #multiple #assignment
# multiple assignment = allows us to assign multiple variables at the same time in one line of code
name = "Bro"
age = 21
attractive = True
name, age, attractive = "Bro", 21, True
print(name)
print(age)
print(attractive)
# Spongebob = 30
# Patrick = 30
# Sandy = 30
# Squidward = 30
# Spongebob = Patrick = Sandy = Squidward = 30
# print(Spongebob)
# print(Patrick)
# print(Sandy)
# print(Squidward)
Bro Code merch store
#python #multiple #assignment
# multiple assignment = allows us to assign multiple variables at the same time in one line of code
name = "Bro"
age = 21
attractive = True
name, age, attractive = "Bro", 21, True
print(name)
print(age)
print(attractive)
# Spongebob = 30
# Patrick = 30
# Sandy = 30
# Squidward = 30
# Spongebob = Patrick = Sandy = Squidward = 30
# print(Spongebob)
# print(Patrick)
# print(Sandy)
# print(Squidward)
Bro Code merch store
- Category
- Bro Code
- Tags
- Python, Python For Beginners, Learn Python
Be the first to comment


