Driving Innovation, Scaling Solutions
Python has an in-built function called round()
random = 1.4 print(round(random)) Output = 1
Here’s an article with more information:
https://favtutor.com/blogs/round-down-python
Have any questions or comments? Write them below!
Your email address will not be published. Required fields are marked *
Comment *
Save my name, email, and website in this browser for the next time I comment.