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]")