## Some examples
## Multiple Target assignment
a = b = c = 10
# let's check the outputs
print(a,b,c) # 10,10,10
a = 20
b = 30
# let's check again
print(a,b,c) # 20,30,10
# This 'a = b = c = 10' is similar to
some_var = 10
a = some_var
b = some_var
c = some_var
# as we saw earlier variables are just names, when we change a/b/c
# we are only changing their reference, others are not affected
# but there is some catch and we'll catch it later
## Chaining operators
# this is similar to 'if 10<=20 and 20<30:'
if 10 <= 20 < 30:
print("okay got it")
## Continuations
# Example 1: Using backslash
# use '\' at the end of the line to continue on another line
text = "This is text 1." \
"This is text 2" \
"And I can also continue here in the next line."
# Example 2: Using parens (...)
output = something
.some_fun()
.calling_other_fun()
## Apart from these there are more syntactic sugars in Python such as
# ternary operator, comprehensions, incrementing & decrementing, etc.