From c0e5071e797e0621ce0034111d48514f4d3b929b Mon Sep 17 00:00:00 2001 From: Aviv Faraj <73610201+avivfaraj@users.noreply.github.com> Date: Tue, 7 Sep 2021 09:35:30 -0400 Subject: [PATCH] Modified prints to f-string --- physics/horizontal_projectile_motion.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/physics/horizontal_projectile_motion.py b/physics/horizontal_projectile_motion.py index ea90b5603..96afc92b2 100644 --- a/physics/horizontal_projectile_motion.py +++ b/physics/horizontal_projectile_motion.py @@ -120,6 +120,6 @@ if __name__ == "__main__": v_dis = str(max_height(init_vel, angle)) t_time = str(total_time(init_vel, angle)) print("Results: ") - print("Horizontal Distance: " + h_dis + " [m]") - print("Maximum Height: " + v_dis + " [m]") - print("Total Time: " + t_time + " [s]") + print(f"Horizontal Distance: {h_dis} [m]") + print(f"Maximum Height: {v_dis} [m]") + print(f"Total Time: {t_time} [s]")