# This script calculates and prints the flow rate in a pipe# using the Hagen-Poiseuille equation. It assumes the dynamic# viscosity of water and allows for inputs of pipe radius,# pipe length, and pressure difference.letμ_water:DynamicViscosity=1mPa·sfnflow_rate(radius:Length,length:Length,Δp:Pressure)->FlowRate=π×radius^4×Δp/(8μ_water×length)letpipe_radius=1cmletpipe_length=10mletΔp=0.1barletQ=flow_rate(pipe_radius,pipe_length,Δp)print("Flow rate: {Q -> L/s}")