'''lecture_09_distance_template.py Illustrates how return statements work Oliver W. Layton CS 151: Computational Thinking: Visual Media Fall 2020 TODO: 1. Add return statement 2. Demo None: show what happens with assignment without return value 3. Simultaneous assignment: show returning absolute and Eucludean distance 4. Try adding int and tuple ''' import math def distance(x, y): '''Computes the Euclidean distance between x and y''' dist = math.sqrt(x**2 + y**2) # main code dist = 0 x = 3 y = 4 distance(x, y) print(dist)