In the distance you see a small pink slug dog type creature.
It turns it's head towards you and says:
"HELLO! I'm that adorable bimbo Piloff from that kid's animated movie 'Bartok the Magnificent.'"
The next thing you know, her face is right in front of yours. She continues.
"Here is the python code for finding out the area of a regular polygon:
print('Hello. I am here to tell you the area of a regular polygon.')
print ('Think of a polygon. How many sides does it have?')
n = input()
n = int(n)
print('And what is the length of each side?')
s = input()
s = int(s)
A = 0.25*n*s*s*math.tan(math.pi*0.5-math.pi*(1/n))
A = str(A)
print ('The area of the regular polygon you thought of is ' + A)
print (' ')
Play = 1
while Play == 1:
You type everything down into your python GUI. You run the program. It works!