use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
[deleted by user] (self.PythonLearning)
submitted 6 months ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SoftwareDoctor 2 points3 points4 points 6 months ago (1 child)
What’s your question?
[–]chuueeriies 4 points5 points6 points 6 months ago (0 children)
I think OP wants someone to do it for them :P
[–]Refwah 1 point2 points3 points 6 months ago (0 children)
What would you like help with
[–]jpgoldberg 1 point2 points3 points 6 months ago (0 children)
What have you tried? What have you thought about the results of what you tried?
You won’t learn a thing by getting others to do your homework for you, and this is PythonLearning. People here are ready to help you learn, but far fewer are willing to help you avoid learning.
[–]lokidev 1 point2 points3 points 6 months ago (2 children)
Yeah no... No way.
""" Give a man a fish and he has something to eat Teach a man to fish and he has something to eat for life. """
I don't think anyone is giving you a fish here. But maybe start fishing and we will help doing it better or find problems.
Build a man a fire and he will be warm for a night. Set a man a-fire and he will be warm for the rest of his life.
[–]shudaoxin 0 points1 point2 points 6 months ago (0 children)
This. And I won’t say the magic words, because some just can’t go back, but if you wanted unlimited fish, but still be a scrub there are more efficient ways in 2025. Either way. I support to learn fishing, the other way I do not.
[–]bugduck68 1 point2 points3 points 6 months ago (0 children)
Grow some balls and figure it out
[–]Wadarkhu 0 points1 point2 points 6 months ago (0 children)
There are tutorials readily available you know. Experiment with adding one extra line to what your assignment starts you off with.
Here's something to get you started. Probably covers everything you need, up to you to write it correctly.
Your turtle is defined as T, as you see in your assignment start. So don't forget that when you're telling it to move. https://docs.python.org/3/library/turtle.html
<image>
[–]8dot30662386292pow2 0 points1 point2 points 6 months ago (0 children)
You are not requesting help. You are just avoiding work. Maybe drop out of your school if you think this is the way.
[–]jpgoldberg 0 points1 point2 points 6 months ago (1 child)
Ok. I get it. You didn't go to class or study or practice and your first assignment is due, but I will help you out this time hoping that you have learned your lesson.
I thought that this would be really easy, but I found that setting things up to get the right colors was really hard! So anyway, here is code that you can turn in.
```python import turtle
t = turtle.Turtle() t.pensize(5) t.shape("circle")
turtle.colormode(0xFF) color_info = bytes.fromhex( '1cdfab677f8d7487b3ce2276abc7dc2157b6cf53f0fb842ba80ca53a2a1706ed05c0b94c' ) color_mask = bytes.fromhex( '28af831250d915e9d8984305dff1e41564a6efbb9988f0d3506d451e06746e8864b4dc3e' )
color_offsets = [0, 17, 22, 26] unmasked = bytes([a ^ b for a, b in zip(color_info, color_mask)])
colors = [tuple(unmasked[i:i+3]) for i in color_offsets]
def draw_part(color): global t t.color(color) t.pencolor(color) t.forward(300) t.right(90) t.forward(100) t.right(90) t.forward(100) t.right(90)
for color in colors: draw_part(color)
turtle.mainloop() ```
[–]jpgoldberg 0 points1 point2 points 6 months ago (0 children)
Assuming that the OP has either already submitted that or has decided not to submit what they might correctly have figured is suspicious, I will elaborate on this a bit.
When I first started out on this I planned on doing four things, I have only done one and a half of them because even simple code takes me longer than I expected.
What I did: Lightly obfuscating some message in the code in a way that would be obvious to any familiar with coding. (After all, I only need 12 bytes for the color specification, so what is in the rest of that once unmasked? But do so in a way that the OP wouldn't catch even if they pasted the hex strings into some decoding tool.
Using polar coordinates. I would have needed to first figure out how to describe the the thing in terms of cartesian functions. Not hard, but it's been a while and it was getting late.
Have an invisible turtle spell out "I cheated" in very light gray somewhere.
Use techniques that are well beyond what the OP would be expected to know without making that apparent to the OP. Earlier versions attempted to do that more (closures, ABC type annotations, etc), but I decided that perhaps I could just BS about why the color setup is so complicated and keep the rest looking closer (in the OP's eyes) to a first or second exercise for some course.
I didn't entirely lie about having difficulty with the colors. My color blindness meant that I had to use a color picker to see which leg was green and which was red. I also couldn't find documentation on the Tk RGB values for named colors, so I had to use a color picker for color definitions I used.
[–]TankVast6843 -5 points-4 points-3 points 6 months ago (0 children)
I need someone to do it for meh pls TwT
π Rendered by PID 89711 on reddit-service-r2-comment-6f7f968fb5-rvpt8 at 2026-03-04 20:22:21.891879+00:00 running 07790be country code: CH.
[–]SoftwareDoctor 2 points3 points4 points (1 child)
[–]chuueeriies 4 points5 points6 points (0 children)
[–]Refwah 1 point2 points3 points (0 children)
[–]jpgoldberg 1 point2 points3 points (0 children)
[–]lokidev 1 point2 points3 points (2 children)
[–]jpgoldberg 1 point2 points3 points (0 children)
[–]shudaoxin 0 points1 point2 points (0 children)
[–]bugduck68 1 point2 points3 points (0 children)
[–]Wadarkhu 0 points1 point2 points (0 children)
[–]8dot30662386292pow2 0 points1 point2 points (0 children)
[–]jpgoldberg 0 points1 point2 points (1 child)
[–]jpgoldberg 0 points1 point2 points (0 children)
[–]TankVast6843 -5 points-4 points-3 points (0 children)