Kearo Kai

Kearo Kai's profile picture

"fnaf & nb"

21, U.S, Genderfluid

Last active:

Mood: bossy


View my: Profile | Forum Topics

Report User

SpaceHey Blog URL:

https://blog.spacehey.com/profile?id=1221679

Kearo Kai's Blog Entries

[Subscribe to this Blog]

Python Interest grid with Ticks

Category: Web, HTML, Tech

from graphics import *     rate = float(input('what is the loan interst rate? [%]: '))/100/12 balance = float(input('Starting balance: ')) maxValue = 10000 interval = 1000 def createLabeledWindow(maxValue, interval):               W, H = 400, 400     maxYear =7     padYears, padValue = 0.75, 0.1*maxValue     win = GraphWin('Bar plot of Account Balance', W » Continue Reading

» View Blog Entry

Python Graphics Import

Category: Web, HTML, Tech

# graphics.py """Simple object oriented graphics library   The library is designed to make it very easy for novice programmers to experiment with computer graphics in an object oriented fashion. It is written by John Zelle for use with the book "Python Programming: An Introduction to Computer Science" (Franklin, Beedle & Associates). LICENSE: This is open-source software released under the terms o... » Continue Reading

» View Blog Entry

Python Explosion

Category: Web, HTML, Tech

#flipbook click  from graphics import *  from time import sleep W, H = 400, 400 win = GraphWin('Explosion ', W, H) win.setCoords(0, 0 , 100, 100) win.setBackground('grey')      for i in range(10):     p = win.checkMouse()          pos1 = Image(p, 'pos1.png')     pos1.draw(win)     pos1.undraw()     sleep(1)     pos2 = Image(p, 'pos2.png')     » Continue Reading

» View Blog Entry

Python Face Simple

Category: Web, HTML, Tech

from graphics import* win = GraphWin('Face', 400, 400) #we'll need about 5 circles and one oval to make a mouth  head = Circle(Point(200, 200), 100) head.setFill('purple') head.draw(win) le= Circle(Point(150, 200), 10) le.setFill('yellow') le.draw(win) re = Circle(Point(250,200), 10) re.setFill('yellow') re.draw(win) » Continue Reading

» View Blog Entry

Python Create a Button

Category: Web, HTML, Tech

from graphics import * from gamelibrary import Button win = Graphwin('Testing Button', 400, 400) myButton = Button(Point(200-hw, 200- hh), Point(200+hw , 200 +hh), 'Click ME!', ) colors = ['purple','indianred','gold','darkblue','pink'] i = 0  while True:     p = win.checkMouse()     key = win.checkKey()     if myButton.clicked(p):         #switch colors of the background         win.setBackground » Continue Reading

» View Blog Entry

Pythons Bubble line

Category: Web, HTML, Tech

#This program creates a line of bubbles from graphics import * from time import sleep from random import randint W, H = 400, 400 r = 10 # randint(0, 8 ) #NOTES::     # how do we get two different coordinates      # we have x1, y1 and x2,y2      # make a for loop subtracting the delta counts     #x1 = x1 +dx/10  win = GraphWin('Bubbly', W, H, autoflush = False) #win.setCoords(0, 0 , 100, 100) » Continue Reading

» View Blog Entry

Python Bubble Blaster

Category: Web, HTML, Tech

from graphics import* from time import sleep from random import randint W, H = 400, 400 r = 10 win = GraphWin('bubble blaster', W, H) #win.setCoords(-100, -100, 100, 100) win.setBackground('black') p1 = win.getMouse() for i in range(10):     p2 = win.getMouse()     x1, y1 = p1.getX(), p1.getY()     x2, y2 = p2.getX(), p2.getY()          dx, dy = x2- x1, y2 - y1 » Continue Reading

» View Blog Entry

Pythons Bouncing Ball & Dancing Daisy

Category: Web, HTML, Tech

from graphics import * from time import sleep W, H = 400, 400 r = 10 win = GraphWin('Bouncing Ball ', W, H, autoflush = False) win.setCoords(0, 0 , 100, 100) win.setBackground('black') ball = Circle(Point(50, r), r) ball.setFill('purple') ball.draw(win) daisy = Image(Point(20,30), 'daisy.png') daisy.draw(win) for i in range(10):     for » Continue Reading

» View Blog Entry

1 Comment

Python PacGuy

Category: Web, HTML, Tech

~~~~~~~~~~~~~~~~~~Make Him Move~~~~~~~~~~~~~~~~~~~~~~~~ from graphics import * from random import randint, choice from math import sqrt win = GraphWin('That puc guy', 400, 400, autoflush=False) win.setBackground('black') r =0.5 pac = Circle(Point(24,24), r) pac.setFill('yellow') pac.draw(win) ghost = Rectangle(Point(10, 10), Point(25,25)) ghost.setFill('red') ghost.d » Continue Reading

» View Blog Entry

1 Comment

Python Average py

Category: Web, HTML, Tech

print('This program calculates the average numbers entered by the user') N = int(input('How many numbers do you have?: ')) y = 0  for i in range(N):     x = float(input('Please enter you number: '))     y = x + y print(f'The average of your numbers is {y/N:.1f}') ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print('This progrsm calculates the average numbers entered by the user') N = int(input... » Continue Reading

» View Blog Entry

Python Total Rectangle Area

Category: Web, HTML, Tech

import math a = float(input("please enter your a: ")) b = float(input("please enter your b: ")) c = float(input("please enter your c: ")) s = (a + b + c)/ 2  area = math.sqrt(s*(s-a) * (s -b) * (s-c)) print(area) » Continue Reading

» View Blog Entry

Python Area Finder

Category: Web, HTML, Tech

import math a = float(input("please enter your a: ")) b = float(input("please enter your b: ")) c = float(input("please enter your c: ")) s = (a + b + c)/ 2  area = math.sqrt(s*(s-a) * (s -b) * (s-c)) print(area) » Continue Reading

» View Blog Entry