Feeling with Python

Feeling with Python

 

In this unit in technology class we learned about function, list, and dictionary in Python programming language. In this round I had a lots of trip going on which is the main problem that cause me to miss this technology and multimedia class. In class our teacher taught about  function, list, and dictionary in Python. Function can be used to calculate the mean/average of the given list number. List is data structure that is a mutable or changeable , ordered sequence of elements. Dictionary is a collection of items that is unordered and changeable, and it written in a curly brackets { }.

Even though I missed a lots of technology, it is fine, I can spend my free to caught up on that and understand most of them. One thing that I am disappointed about is when I updated my PC windows and when I am opened the trinket account to see my code, unfortunately I lose all my code in the trinket account even I had saved the code in the account. Other thing is that when I copy the link of my code to submit my work in google classroom and I clicked on that link and it load none of my code back. That is the that the point for to unlike technology class and I felt like I don’t want to use trinket. But, because of my possible thinking that I can create the code,  which mean I can create another code of it, but because I think that I already create the colour creation so I want try new thing which is circle creation. Before, I found the circle creation I tries to look in my assignment that my teacher Cindy assigned to me, but I didn’t like all those material and the code, so I just go to trinket website and research about different code and finally I found the circle creation and the result is beautiful and try those material and it is really helpful for me even though it was not assigned. When I followed the instruction and make some change with the code and play around with those code, and finally change my negative feeling with trinket and my technology class. This is the code of the circle creation:

 

import turtle

import math

import random

wn = turtle.Screen()

wn.bgcolor(‘black’)

Albert = turtle.Turtle()

Albert.speed(0)

Albert.color(‘white’)

rotate=int(360)

def drawCircles(t,size):

   for i in range(10):

       t.circle(size)

       size=size-4

def drawSpecial(t,size,repeat):

 for i in range (repeat):

   drawCircles(t,size)

   t.right(360/repeat)

drawSpecial(Albert,100,50)

Steve = turtle.Turtle()

Steve.speed(0)

Steve.color(‘yellow’)

rotate=int(90)

def drawCircles(t,size):

   for i in range(4):

       t.circle(size)

       size=size-10

def drawSpecial(t,size,repeat):

   for i in range (repeat):

       drawCircles(t,size)

       t.right(360/repeat)

drawSpecial(Steve,100,20)

Barry = turtle.Turtle()

Barry.speed(0)

Barry.color(‘Purple’)

rotate=int(80)

def drawCircles(t,size):

   for i in range(4):

       t.circle(size)

       size=size-5

def drawSpecial(t,size,repeat):

   for i in range (repeat):

       drawCircles(t,size)

       t.right(360/repeat)

drawSpecial(Barry,100,20)

Terry = turtle.Turtle()

Terry.speed(0)

Terry.color(‘red’)

rotate=int(90)

def drawCircles(t,size):

   for i in range(4):

       t.circle(size)

       size=size-19

def drawSpecial(t,size,repeat):

   for i in range (repeat):

       drawCircles(t,size)

       t.right(360/repeat)

drawSpecial(Terry,100,20)

Will = turtle.Turtle()

Will.speed(0)

Will.color(‘yellow’)

rotate=int(90)

def drawCircles(t,size):

   for i in range(4):

       t.circle(size)

       size=size-20

def drawSpecial(t,size,repeat):

   for i in range (repeat):

       drawCircles(t,size)

       t.right(360/repeat)

drawSpecial(Will,100,20)

Copy the code above and open this link to try my code here:

So as you can above this a code that I use trinket to code and you can check how the code work by copy the to trinket or any kind of codeboard. Overall I felt very good about trinket and I want to learn and learn more about technology and wanted to code others different kind of code.

I hope you enjoy reading this have fun with you day.

Quote: If the plan doesn’t work, change the plan but never the goal. ( Lifehack )

 

Leave a Reply

Your email address will not be published. Required fields are marked *