Posts

Showing posts from December, 2019

#4t:Codding in Python {VIRTUAL CALCULATOR}

Image
import math;import turtle as t def main(a,b):     for u in range(0,9):         Manya=math.pow(10,u);         for yy in (a):b.append(yy*Manya);a.remove(yy);break w=t.Turtle();w.speed(0);w.ht() def we(x,y,q):w.pu();w.goto(x,y);w.pd();w.write(q,font=('arial',30,'bold')) we(-85,-50,'1');we(65,-100,'=');we(-85,0,'4');we(65,-50,'-');we(15,-100,'+');we(-35,-50,'2');we(65,-0,'*');we(-35,-100,'0');we(65,50,'/');we(15,-50,'3');we(-35,0,'5');we(15,-0,'6');we(-35,50,'8');we(15,50,'9');we(-85,50,'7') qqqlist=[];kkklist=[];total=[];func=['kk'];qlist=['yt'];qqlist=['pp'];pp='pp';klist=[];kklist=[];q=t.Turtle();q.ht();r=t.Turtle();r.ht();r.speed(0);r.pu();r.goto(-250,50);t.pd();q.pu();q.speed(0);q.goto(-100,100);q.pd(); for o in range(2):    q.fd(200);q.right(-90);q.fd(50);q.right(-90) t.pu();t.goto(-100,100);t.pd();t.speed(0