#Shorts #Youtubeshorts #findsquarerootofnumber
print("Hello guys")
I am here to show how python works and n this video i am going to teach you how to find 'Square Root' of an number.
Subscribe for more coding related contents...…..........👩💻👨💻
___________________________________________________________________________________________________
My previous video's
Apple logo using python : • Apple Logo 🔥🔥 using python | How to create...
Advanced python calculator : • 🔥🔥Advanced Calculator using python part 2 ...
Amazing pattern using python : • 🔥🔥 Amazing pattern using python | How to c...
Follow me🔻
Instagram : / world__of__python
___________________________________________________________________________________________________
My Playlists
Python turtle design's : • Python Turtle
Flag Tutorial : • Flag Tutorial
Python game building : • Python game building
Python tutorial : • Python tutorial
Logo's using python : • Logo using python
___________________________________________________________________________________________________
Source code :
import tkinter as tk
root = tk.Tk()
canvas1 = tk.Canvas(root,
width=400,
height=300,
relief='raised')
canvas1.pack()
label1 = tk.Label(
root,
text='Calculate the'
' Square Root'
)
label1.config(font=
('helvetica', 14)
)
canvas1.create_window(200,
25, window=label1)
label2 = tk.Label(root,
text='Type your Number:')
label2.config(
font=('helvetica', 10))
canvas1.create_window(200,
100, window=label2)
entry1 = tk.Entry(root)
canvas1.create_window(200,
140, window=entry1)
def getSquareRoot():
x1 = entry1.get()
label3 = tk.Label(
root,
text='The Square Root of ' +
x1 + ' is:',
font=('helvetica', 10)
)
canvas1.create_window(200,
210, window=label3)
label4 = tk.Label(
root,
text=float(x1) ** 0.5,
font=('helvetica', 10, 'bold')
)
canvas1.create_window(200,
230, window=label4)
button1 = tk.Button(
text='Get the Square Root',
command=getSquareRoot,
bg='brown',
fg='white',
font=('helvetica', 9, 'bold')
)
canvas1.create_window(200,
180, window=button1)
root.mainloop()
________________________________________________________________________________________________
Song: Jarico - Island (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Video Link: • Video