mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Modified prints to f-string
This commit is contained in:
parent
132e4952ee
commit
c0e5071e79
@ -120,6 +120,6 @@ if __name__ == "__main__":
|
|||||||
v_dis = str(max_height(init_vel, angle))
|
v_dis = str(max_height(init_vel, angle))
|
||||||
t_time = str(total_time(init_vel, angle))
|
t_time = str(total_time(init_vel, angle))
|
||||||
print("Results: ")
|
print("Results: ")
|
||||||
print("Horizontal Distance: " + h_dis + " [m]")
|
print(f"Horizontal Distance: {h_dis} [m]")
|
||||||
print("Maximum Height: " + v_dis + " [m]")
|
print(f"Maximum Height: {v_dis} [m]")
|
||||||
print("Total Time: " + t_time + " [s]")
|
print(f"Total Time: {t_time} [s]")
|
||||||
|
Loading…
Reference in New Issue
Block a user