Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
This question is how to define same variable for two values using python.
min_lat = 10 min_lat = lower_right_lat = lower_left_lat
I should get the result for both the lower_right_lat and lower_left_lat to be 10.
lower_right_lat = lower_left_lat = min_lat
Simply change the order of assignment:
The statements are evaluated from right to left.
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
lower_right_lat = lower_left_lat = min_lat