Python coding | Information Systems homework help

lphabet = {

    ‘A’: ((0,0),(0.5,1),(0.75,0.5),(0.25,0.5),(0.75,0.5),(1,0)),

    ‘B’: ((0,0),(0,1),(0.625 ,1),(0.75,0.875),(0.75,0.625),(0.625,0.5),(0,0.5),(0.625,0.5),(0.75,0.375),(0.75,0.125),(0.625,0),(0,0)),

    ‘C’: ((0.75,0.125),(0.625,0),(0.125,0),(0,0.125),(0,0.875),(0.125,1),(0.625,1),(0.75,0.875)),

    ‘D’: ((0,0),(0,1),(0.625 ,1),(0.75,0.875),(0.75,0.125),(0.625,0),(0,0)),

    ‘E’: ((0.75,0),(0,0),(0,0.5),(0.75,0.5),(0,0.5),(0,1),(0.75,1)),

    ‘F’: ((0,0),(0,0.5),(0.75,0.5),(0,0.5),(0,1),(0.75,1)),

    ‘G’: ((0.75,0.5),(0.625,0.5),(0.75,0.5),(0.75,0.125),(0.625,0),(0.125,0),(0,0.125),(0,0.875),(0.125,1),(0.625,1),(0.75,0.875)),

    ‘H’: ((0,0),(0,1),(0,0.5),(0.75,0.5),(0.75,1),(0.75,0)),

    ‘I’: ((0,0),(0.25,0),(0.125,0),(0.125,1),(0,1),(0.25,1)),

    ‘J’: ((0,0.125),(0.125,0),(0.375,0),(0.5,0.125),(0.5,1)),

    ‘K’: ((0,0),(0,1),(0,0.5),(0.75,1),(0,0.5),(0.75,0)),

    ‘L’: ((0,0),(0,1),(0,0),(0.75,0)),

    ‘M’: ((0,0),(0,1),(0.5,0),(1,1),(1,0)),

    ‘N’: ((0,0),(0,1),(0.75,0),(0.75,1)),

    ‘O’: ((0.75,0.125),(0.625,0),(0.125,0),(0,0.125),(0,0.875),(0.125,1),(0.625,1),(0.75,0.875),(0.75,0.125)),

    ‘P’: ((0,0),(0,1),(0.625,1),(0.75,0.875),(0.75,0.625),(0.625,0.5),(0,0.5)),

    ‘Q’: ((0.75,0.125),(0.625,0),(0.125,0),(0,0.125),(0,0.875),(0.125,1),(0.625,1),(0.75,0.875),(0.75,0.125),(0.875,0)),

    ‘R’: ((0,0),(0,1),(0.625,1),(0.75,0.875),(0.75,0.625),(0.625,0.5),(0,0.5),(0.625,0.5),(0.875,0)),

    ‘S’: ((0,0.125),(0.125,0),(0.625,0),(0.75,0.125),(0.75,0.375),(0.675,0.5),(0.125,0.5),(0,0.625),(0,0.875),(0.125,1),(0.625,1),(0.75,0.875)),

    ‘T’: ((0,1),(0.5,1),(0.5,0),(0.5,1),(1,1)),

    ‘U’: ((0,1),(0,0.125),(0.125,0),(0.625,0),(0.75,0.125),(0.75,1)),

    ‘V’: ((0,1),(0.375,0),(0.75,1)),

    ‘W’: ((0,1),(0.25,0),(0.5,1),(0.75,0),(1,1)),

    ‘X’: ((0,0),(0.375,0.5),(0,1),(0.375,0.5),(0.75,1),(0.375,0.5),(0.75,0)),

    ‘Y’: ((0,1),(0.375,0.5),(0.375,0),(0.375,0.5),(0.75,1)),

    ‘Z’: ((0,1),(0.75,1),(0,0),(0.75,0)),


#Python Turtle – WordArt Challenge –

import turtle

import random

from alphabet import alphabet

from math import cos, sin, atan2, radians, degrees 

myPen = turtle.Turtle()



window = turtle.Screen()



def displayMessage(message,fontSize,color,x,y,rotationAngle):





  for character in message:

    if character in alphabet:







      for dot in letter:

        angle = atan2((dot[1]-y),(dot[0]-x))

        angle= degrees(angle)    


        distance = ((dot[0]-x)**2 + (dot[1]-y)**2)**0.5





        x = dot[0]

        y = dot[1]




      angle = atan2((0-y),(0-x))

      angle = degrees(angle)    


      distance = ((0-x)**2 + (0-y)**2)**0.5












#Main Program Starts Here

fontSize = 30


characterSpacing = 5

message = “Hello World”


i need explanation of each line how it works and what is the meaning of eachb syntex ?

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more