Question

Q8) Draw a twelve-pointed star. code and run from PYCHARM.

Q8) Draw a twelve-pointed star. code and run from PYCHARM.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Thanks for the question, here is the simple program in python that draws as 12 pointed Star.

Note:

Pycharm is just an editor where you write Python code, Python code should run in any Python editor.

import turtle

T = turtle.Turtle()
S = turtle.Screen()

angle=360
sides=12

for _ in range(sides):
    T.forward(250)
    T.left(180-angle/sides)


S.exitonclick()

import turtle turtle. Turtle turtle. Screen т angle 360 sides 12 in range (sides) T. forward (250) T. left (180-angle/sides)

Add a comment
Know the answer?
Add Answer to:
Q8) Draw a twelve-pointed star. code and run from PYCHARM.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Q3)  A day has 86,400 secs (24*60*60). Given a number in the range 1 to 86,400, output...

    Q3)  A day has 86,400 secs (24*60*60). Given a number in the range 1 to 86,400, output the current time as hours, minutes, and seconds with a 24-hour clock. For example:70,000 sec is 19 hours, 26 minutes, and 40 seconds. Q4) Consider a triangle with sides of length 3, 7, and 9. The law of cosines states that given three sides of a triangle (a, b, and c) and the angle C between sides a and b: c square = a...

  • Ricardo can write twelve batches of code a day, or answer twelve help-line calls. 4. Draw...

    Ricardo can write twelve batches of code a day, or answer twelve help-line calls. 4. Draw his production possibilities curve on a second graph using the same axes and scales. 5. What is Ricardo’s opportunity cost for writing code? 6. What is his opportunity cost for answering calls?

  • 1) For a star that is moving away from the Earth, a) the spectral lines of...

    1) For a star that is moving away from the Earth, a) the spectral lines of the star are much narrower than the spectral lines of an identical star that is not moving towards or away from the earth. b) the spectral lines of the star are shifted towards the blue end of the spectrum compared to an identical star that is not moving towards or away from the earth. c) the spectral lines of the star are shifted towards...

  • What do the selection from the twelve Tables reveal about Roman society . In what ways...

    What do the selection from the twelve Tables reveal about Roman society . In what ways do these points is of law differ from those found in the code of Hammurabi in what ways are thy similar?

  • 2.- [11 points) When the object code is loaded into memory, a segment called the run...

    2.- [11 points) When the object code is loaded into memory, a segment called the run time environment is created. Name the sections of the object code file generated by the assembler and describe each entry in the header file. Name the sections of the run time environment and draw a picture of the object code file and the run time environment indicating how they are related. Use arrows to indicate relationships.

  • What do the selections from the Twelve Tables reveal about Roman society? In what ways do...

    What do the selections from the Twelve Tables reveal about Roman society? In what ways do these points of law differ from those found in the Code of Hammurabi? In what ways are they similar?

  • Write a C++ code to display the data member of the nodes started from the node...

    Write a C++ code to display the data member of the nodes started from the node pointed to by p and ending at the node pointed to by q of this doubly linked list. (Each node has three members: data that contains the information, right and left members contain addresses to the nodes on either side. Ex. p->left represents the address of the node to the left of node p) <5> dotted arrow indicates; there may be any number of...

  • Make a Code in C++ language. The Code should not copy paste from internet. The code...

    Make a Code in C++ language. The Code should not copy paste from internet. The code should complete and should run. Also provide output. Make the code in easy way and also provide comments. The code should complete and Don't forget to provide output. 1. Make a cpp class TTT. 2. In that class, you will have two functions. one main function and one function named fib(). 3. Get the value of n from user in main function. n specifies...

  • + Run C Code IMPORTANT: • Run the following code cell to create the input file,...

    + Run C Code IMPORTANT: • Run the following code cell to create the input file, biostats.csv, which you will be using later. 74, In [ ]: N %%file biostats.csv Name, Sex, Age, Alex, M, 41, Bert, M, 42, Dave, M, 39, Elly, F, 30, Fran, F, 33, Jake, M, F, Luke, M, 34, F Myra, M, M, 38, Ruth, F, 28, 22 22 323 47 47, Height, Weight 170 200 167 70 115 143 139 280 98 75, 350...

  • 9.- ( 11 points) Draw a diagram showing the ELF(object code), Process Control Block, Thread Control...

    9.- ( 11 points) Draw a diagram showing the ELF(object code), Process Control Block, Thread Control Blocks and the run-time environment for a program with three threads, indicating how these data structures are related. Use arrows to show all relationships.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT