Python Program to find Cube and Square Root

Publié le: 17 octobre 2020
sur la chaîne: StraightForward Coding
585
6

This video is a tutorial on how to find Cube and Square Root in Python
I hope this video will be helpful to you.
I am also giving the code of this program.
print("This is a Python program to find Square and Cube Root")
response = int(input("What's your choice....Square or Cube Root...1 for square and 2 for Cube root: ")))
if (response == 1):
num1 = int(input(print("Which number do you want to find the square root of? ")
sq_root1 = num1**0.5
sq_root = round(sq_root1)
print("The square root of ",num1,"is ",sq_root)
else
num2 = int(input(print("Which number do you want to find the cube root of? ")
cb_root1 = num2**0.33
cb_root = round(cb_root1)
print("The cube root of ",num2,"is ",cb_root)
This is all the coding part.
Python 3.8 download: https://www.python.org/downloads/rele...
Visual Studio 2019 download: https://visualstudio.microsoft.com/
Please like and share this video and don't forget to subscribe to my channel.: https://bit.ly/Subscribe_to_StraightF...
Thank you!


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Program to find Cube and Square Root durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur StraightForward Coding 17 octobre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 585 fois et il a aimé 6 téléspectateurs. Bon visionnage!