Answers for "python how to make a square using def"

2

how to do a square root in python

a = int(input("enter a real number: "))
sqrt = a**(1/2)
print("the square root of ",a ,"is",sqrt)
Posted by: Guest on March-22-2021
2

python how to draw a square

import turtle
for i in range(4):
  turtle.forward(40)
  turtle.right(90)
Posted by: Guest on December-31-2020

Code answers related to "python how to make a square using def"

Python Answers by Framework

Browse Popular Code Answers by Language