From 894fa7f0098efc67592b4eb0d7aac068790f1657 Mon Sep 17 00:00:00 2001 From: Aviv Faraj <73610201+avivfaraj@users.noreply.github.com> Date: Tue, 7 Sep 2021 09:37:33 -0400 Subject: [PATCH] Update horizontal_projectile_motion.py --- physics/horizontal_projectile_motion.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/physics/horizontal_projectile_motion.py b/physics/horizontal_projectile_motion.py index 96afc92b2..0ae6348ea 100644 --- a/physics/horizontal_projectile_motion.py +++ b/physics/horizontal_projectile_motion.py @@ -116,10 +116,7 @@ if __name__ == "__main__": # Print results else: print() - h_dis = str(horizontal_distance(init_vel, angle)) - v_dis = str(max_height(init_vel, angle)) - t_time = str(total_time(init_vel, angle)) print("Results: ") - print(f"Horizontal Distance: {h_dis} [m]") - print(f"Maximum Height: {v_dis} [m]") - print(f"Total Time: {t_time} [s]") + print(f"Horizontal Distance: {str(horizontal_distance(init_vel, angle))} [m]") + print(f"Maximum Height: {str(max_height(init_vel, angle))} [m]") + print(f"Total Time: {str(total_time(init_vel, angle))} [s]")