SlideShare ist ein Scribd-Unternehmen logo
1 von 1
using Python Programing 3 (Functions and Lists),
Write a program that calculates the first 10 SquareRoots and populates a list named, 'lstRoots'
with the results. The program should use 4 main functions: Main(): , sqRoot() , buildList(),
showResult(). Program must also use the math module; math.sqrt(x) function to preform
calculation. This program must print out the contents as the list Grows. I have tried several times,
i keep getting errors with the sqrt function. Please any feedback is greatly appreciated
Solution
Python Program to calculate the square root:-
num = float(input('Enter your desired number: '))
num_sqrt = num ** 0.5
print('The square root of %0.3f is %0.3f'%(num ,num_sqrt))
HERE out put comes as
Enter your desired number: -
The square root of -.000 is -.---
this program, for a number and find the square root using the ** exponent operator. This
program works for all positive real numbers

Weitere ähnliche Inhalte

Ähnlich wie using Python Programing 3 (Functions and Lists)- Write a program that.docx

C++ Course - Lesson 2
C++ Course - Lesson 2C++ Course - Lesson 2
C++ Course - Lesson 2Mohamed Ahmed
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfKabilaArun
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfattalurilalitha
 
Programming basics
Programming basicsProgramming basics
Programming basicsillidari
 
Java conceptual learning material
Java conceptual learning materialJava conceptual learning material
Java conceptual learning materialArthyR3
 
python lab programs.pdf
python lab programs.pdfpython lab programs.pdf
python lab programs.pdfCBJWorld
 
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docxJLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docxvrickens
 
Python Programming - II. The Basics
Python Programming - II. The BasicsPython Programming - II. The Basics
Python Programming - II. The BasicsRanel Padon
 
Data Structure & Algorithms - Matrix Multiplication
Data Structure & Algorithms - Matrix MultiplicationData Structure & Algorithms - Matrix Multiplication
Data Structure & Algorithms - Matrix Multiplicationbabuk110
 
Class 8b: Numpy & Matplotlib
Class 8b: Numpy & MatplotlibClass 8b: Numpy & Matplotlib
Class 8b: Numpy & MatplotlibMarc Gouw
 
Programming For As Comp
Programming For As CompProgramming For As Comp
Programming For As CompDavid Halliday
 
Programming For As Comp
Programming For As CompProgramming For As Comp
Programming For As CompDavid Halliday
 
Ecs 10 programming assignment 4 loopapalooza
Ecs 10 programming assignment 4   loopapaloozaEcs 10 programming assignment 4   loopapalooza
Ecs 10 programming assignment 4 loopapaloozaJenniferBall44
 

Ähnlich wie using Python Programing 3 (Functions and Lists)- Write a program that.docx (20)

C++ Course - Lesson 2
C++ Course - Lesson 2C++ Course - Lesson 2
C++ Course - Lesson 2
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Java conceptual learning material
Java conceptual learning materialJava conceptual learning material
Java conceptual learning material
 
python lab programs.pdf
python lab programs.pdfpython lab programs.pdf
python lab programs.pdf
 
P3
P3P3
P3
 
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docxJLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
 
Python Homework Help
Python Homework HelpPython Homework Help
Python Homework Help
 
lecture 2.pptx
lecture 2.pptxlecture 2.pptx
lecture 2.pptx
 
Python Programming - II. The Basics
Python Programming - II. The BasicsPython Programming - II. The Basics
Python Programming - II. The Basics
 
Loops in Python
Loops in PythonLoops in Python
Loops in Python
 
Data Structure & Algorithms - Matrix Multiplication
Data Structure & Algorithms - Matrix MultiplicationData Structure & Algorithms - Matrix Multiplication
Data Structure & Algorithms - Matrix Multiplication
 
Class 8b: Numpy & Matplotlib
Class 8b: Numpy & MatplotlibClass 8b: Numpy & Matplotlib
Class 8b: Numpy & Matplotlib
 
Programming For As Comp
Programming For As CompProgramming For As Comp
Programming For As Comp
 
Programming For As Comp
Programming For As CompProgramming For As Comp
Programming For As Comp
 
Ecs 10 programming assignment 4 loopapalooza
Ecs 10 programming assignment 4   loopapaloozaEcs 10 programming assignment 4   loopapalooza
Ecs 10 programming assignment 4 loopapalooza
 
C#.net
C#.netC#.net
C#.net
 
Python Manuel-R2021.pdf
Python Manuel-R2021.pdfPython Manuel-R2021.pdf
Python Manuel-R2021.pdf
 

Mehr von rtodd575

Using the Arrhenius Equation calculate A and Ea for the line y--5723-4.docx
Using the Arrhenius Equation calculate A and Ea for the line y--5723-4.docxUsing the Arrhenius Equation calculate A and Ea for the line y--5723-4.docx
Using the Arrhenius Equation calculate A and Ea for the line y--5723-4.docxrtodd575
 
Using Dr-Racket I need to write a function that does the same thing as.docx
Using Dr-Racket I need to write a function that does the same thing as.docxUsing Dr-Racket I need to write a function that does the same thing as.docx
Using Dr-Racket I need to write a function that does the same thing as.docxrtodd575
 
Wendy is an accountant for a local service company- Without prior auth.docx
Wendy is an accountant for a local service company- Without prior auth.docxWendy is an accountant for a local service company- Without prior auth.docx
Wendy is an accountant for a local service company- Without prior auth.docxrtodd575
 
Week #3 1-ln Simple and Fractional Distillation experiment- fractional.docx
Week #3 1-ln Simple and Fractional Distillation experiment- fractional.docxWeek #3 1-ln Simple and Fractional Distillation experiment- fractional.docx
Week #3 1-ln Simple and Fractional Distillation experiment- fractional.docxrtodd575
 
weak Base- or Neutral)- In the Jirst column- you will also need to pro.docx
weak Base- or Neutral)- In the Jirst column- you will also need to pro.docxweak Base- or Neutral)- In the Jirst column- you will also need to pro.docx
weak Base- or Neutral)- In the Jirst column- you will also need to pro.docxrtodd575
 
Water WaterSolution6- Ahesion causes water to form a meniscus in a gr.docx
Water  WaterSolution6- Ahesion causes water to form a meniscus in a gr.docxWater  WaterSolution6- Ahesion causes water to form a meniscus in a gr.docx
Water WaterSolution6- Ahesion causes water to form a meniscus in a gr.docxrtodd575
 
Use the References to acceas important valuea if The hydronium ion con.docx
Use the References to acceas important valuea if The hydronium ion con.docxUse the References to acceas important valuea if The hydronium ion con.docx
Use the References to acceas important valuea if The hydronium ion con.docxrtodd575
 
Use the References to acce- It is often possible to change a hydrate i.docx
Use the References to acce- It is often possible to change a hydrate i.docxUse the References to acce- It is often possible to change a hydrate i.docx
Use the References to acce- It is often possible to change a hydrate i.docxrtodd575
 
Using Java- Evaluate the expression- Be sure to list a value of approp.docx
Using Java- Evaluate the expression- Be sure to list a value of approp.docxUsing Java- Evaluate the expression- Be sure to list a value of approp.docx
Using Java- Evaluate the expression- Be sure to list a value of approp.docxrtodd575
 
Use your favorite search engine to find the IRSSolutionS corporations.docx
Use your favorite search engine to find the IRSSolutionS corporations.docxUse your favorite search engine to find the IRSSolutionS corporations.docx
Use your favorite search engine to find the IRSSolutionS corporations.docxrtodd575
 
Wade draws a correlation between _____________________ and the onset o.docx
Wade draws a correlation between _____________________ and the onset o.docxWade draws a correlation between _____________________ and the onset o.docx
Wade draws a correlation between _____________________ and the onset o.docxrtodd575
 
Virtualization and the cloud Explain the differences between virtualiz.docx
Virtualization and the cloud Explain the differences between virtualiz.docxVirtualization and the cloud Explain the differences between virtualiz.docx
Virtualization and the cloud Explain the differences between virtualiz.docxrtodd575
 
Use the following terms to answer the question(s) below- A- This react.docx
Use the following terms to answer the question(s) below- A- This react.docxUse the following terms to answer the question(s) below- A- This react.docx
Use the following terms to answer the question(s) below- A- This react.docxrtodd575
 
Use the method of substitution to find the stationary values of Z- i-e.docx
Use the method of substitution to find the stationary values of Z- i-e.docxUse the method of substitution to find the stationary values of Z- i-e.docx
Use the method of substitution to find the stationary values of Z- i-e.docxrtodd575
 

Mehr von rtodd575 (14)

Using the Arrhenius Equation calculate A and Ea for the line y--5723-4.docx
Using the Arrhenius Equation calculate A and Ea for the line y--5723-4.docxUsing the Arrhenius Equation calculate A and Ea for the line y--5723-4.docx
Using the Arrhenius Equation calculate A and Ea for the line y--5723-4.docx
 
Using Dr-Racket I need to write a function that does the same thing as.docx
Using Dr-Racket I need to write a function that does the same thing as.docxUsing Dr-Racket I need to write a function that does the same thing as.docx
Using Dr-Racket I need to write a function that does the same thing as.docx
 
Wendy is an accountant for a local service company- Without prior auth.docx
Wendy is an accountant for a local service company- Without prior auth.docxWendy is an accountant for a local service company- Without prior auth.docx
Wendy is an accountant for a local service company- Without prior auth.docx
 
Week #3 1-ln Simple and Fractional Distillation experiment- fractional.docx
Week #3 1-ln Simple and Fractional Distillation experiment- fractional.docxWeek #3 1-ln Simple and Fractional Distillation experiment- fractional.docx
Week #3 1-ln Simple and Fractional Distillation experiment- fractional.docx
 
weak Base- or Neutral)- In the Jirst column- you will also need to pro.docx
weak Base- or Neutral)- In the Jirst column- you will also need to pro.docxweak Base- or Neutral)- In the Jirst column- you will also need to pro.docx
weak Base- or Neutral)- In the Jirst column- you will also need to pro.docx
 
Water WaterSolution6- Ahesion causes water to form a meniscus in a gr.docx
Water  WaterSolution6- Ahesion causes water to form a meniscus in a gr.docxWater  WaterSolution6- Ahesion causes water to form a meniscus in a gr.docx
Water WaterSolution6- Ahesion causes water to form a meniscus in a gr.docx
 
Use the References to acceas important valuea if The hydronium ion con.docx
Use the References to acceas important valuea if The hydronium ion con.docxUse the References to acceas important valuea if The hydronium ion con.docx
Use the References to acceas important valuea if The hydronium ion con.docx
 
Use the References to acce- It is often possible to change a hydrate i.docx
Use the References to acce- It is often possible to change a hydrate i.docxUse the References to acce- It is often possible to change a hydrate i.docx
Use the References to acce- It is often possible to change a hydrate i.docx
 
Using Java- Evaluate the expression- Be sure to list a value of approp.docx
Using Java- Evaluate the expression- Be sure to list a value of approp.docxUsing Java- Evaluate the expression- Be sure to list a value of approp.docx
Using Java- Evaluate the expression- Be sure to list a value of approp.docx
 
Use your favorite search engine to find the IRSSolutionS corporations.docx
Use your favorite search engine to find the IRSSolutionS corporations.docxUse your favorite search engine to find the IRSSolutionS corporations.docx
Use your favorite search engine to find the IRSSolutionS corporations.docx
 
Wade draws a correlation between _____________________ and the onset o.docx
Wade draws a correlation between _____________________ and the onset o.docxWade draws a correlation between _____________________ and the onset o.docx
Wade draws a correlation between _____________________ and the onset o.docx
 
Virtualization and the cloud Explain the differences between virtualiz.docx
Virtualization and the cloud Explain the differences between virtualiz.docxVirtualization and the cloud Explain the differences between virtualiz.docx
Virtualization and the cloud Explain the differences between virtualiz.docx
 
Use the following terms to answer the question(s) below- A- This react.docx
Use the following terms to answer the question(s) below- A- This react.docxUse the following terms to answer the question(s) below- A- This react.docx
Use the following terms to answer the question(s) below- A- This react.docx
 
Use the method of substitution to find the stationary values of Z- i-e.docx
Use the method of substitution to find the stationary values of Z- i-e.docxUse the method of substitution to find the stationary values of Z- i-e.docx
Use the method of substitution to find the stationary values of Z- i-e.docx
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 

Kürzlich hochgeladen (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 

using Python Programing 3 (Functions and Lists)- Write a program that.docx

  • 1. using Python Programing 3 (Functions and Lists), Write a program that calculates the first 10 SquareRoots and populates a list named, 'lstRoots' with the results. The program should use 4 main functions: Main(): , sqRoot() , buildList(), showResult(). Program must also use the math module; math.sqrt(x) function to preform calculation. This program must print out the contents as the list Grows. I have tried several times, i keep getting errors with the sqrt function. Please any feedback is greatly appreciated Solution Python Program to calculate the square root:- num = float(input('Enter your desired number: ')) num_sqrt = num ** 0.5 print('The square root of %0.3f is %0.3f'%(num ,num_sqrt)) HERE out put comes as Enter your desired number: - The square root of -.000 is -.--- this program, for a number and find the square root using the ** exponent operator. This program works for all positive real numbers