8000
Skip to content

A simple Python script that reads a list of integers, calculates their square roots, and rounds the results to 4 decimal places.

Notifications You must be signed in to change notification settings

Mahdi-Code630/sqrt-rounding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Square Root Rounding

This project is a simple Python script that calculates the square root of input numbers and rounds the result to 4 decimal places.

📌 How to Run

Make sure you have Python installed on your system.
Run the script in the terminal with:

python main.py
✨ Example Input and Output
Input:
3
2
9
10
Output:
[1.4142, 3.0, 3.1623]


Note: You can also use string formatting (f"{value:.4f}") instead of round to always display exactly 4 decimal places.

About

A simple Python script that reads a list of integers, calculates their square roots, and rounds the results to 4 decimal places.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0