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