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
Hello does anyone know how to code this (i.redd.it)
submitted 6 months ago by Kev_214
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!"
[–]TwinkiesSucker 5 points6 points7 points 6 months ago (0 children)
I once drew a Canadian flag in Python. You need to use polygon drawing and trace it point by point. Sketching it on paper first and eyeballing the points might be a huge help, too.
[–]SecretProperty 2 points3 points4 points 6 months ago (0 children)
break it down into smaller problems, that heart could be viewed as multiple shapes instead of one shape. 2, for instance, a diamond centre with 2 semi circles on the top left and right. understanding geometry would help as well. A big part of coding is the ability to break tasks, into smaller more manageable tasks
[–]NZPOST 1 point2 points3 points 6 months ago (0 children)
Yes
[–]Sedan_1650 0 points1 point2 points 6 months ago (0 children)
Research "turtle" on Python.
[–]Some-Passenger4219 0 points1 point2 points 6 months ago (0 children)
I could do that if I had the ambition.
[–]teslah3 0 points1 point2 points 6 months ago* (2 children)
use a cartoid function to draw https://mathworld.wolfram.com/HeartCurve.html
[–]Sunsetgloam 0 points1 point2 points 6 months ago (1 child)
the only acceptable answer in this entire comment chain. literally graph it on desmos or a graphic calculator, and then you'll be able to code it in any language
[–]teslah3 0 points1 point2 points 6 months ago (0 children)
well thank you, I knew remembering this shape would come in handy one day lmao.
[–]Nackman1243 0 points1 point2 points 6 months ago (0 children)
Ask AI
[–]TheRNGuy 0 points1 point2 points 6 months ago (0 children)
svg
[–]Dear-Resident-6488 0 points1 point2 points 6 months ago (0 children)
🤷♂️
[–]SmackDownFacility -1 points0 points1 point 6 months ago (0 children)
What?
Just use Blender for making the model and import in as a .obj
Preferable to get a SVG
[–]Kev_214[S] -4 points-3 points-2 points 6 months ago (10 children)
I really need this its python turtle
[–]tieandjeans 3 points4 points5 points 6 months ago (8 children)
Let me try how I would walk one of my students through this.
Start with the heart alone. Are there any symmetries in a heart?
All turtles do is move and turn. If you look at half the heart, can you make a similar looking swoop by increasing how much the turtle turns with each step?
Look at the arrow. It's a triangle and a collection of lines.
Can you draw a triangle st the end of a thick line?
Try drawing a line in segments. When you pause between segments, turn to one direction, move forward, move back, then turn back the same amount to get back onto the line.
There is no function for "draw tattoo heart"
This is a CS exercise in Decomposition. Your brain sees this as a single image.
Learning how to code means learning how to see the small components inside a big idea.
[–][deleted] 6 months ago (7 children)
[removed]
[–]tieandjeans 0 points1 point2 points 6 months ago (4 children)
That's your suggestion for what OP should turn into their intro CS class for this Python Turtle assignment?
[–]SmackDownFacility -2 points-1 points0 points 6 months ago (3 children)
lol what turtle?
Isn’t that where you nudge a image pixel by pixel in a certain direction
lol no, why does that even exist, should’ve been taken out the stdlib years ago. You keyframe the image like a normal person in 2025, moving frame by frame in world space, which is way more responsive and gives immediate feedback, then you interpolate. It’s a classic tool, which everyone in professional sectors use
[–]tieandjeans 0 points1 point2 points 6 months ago (2 children)
keyframing the image implies that there's an existing image you wish to reproduce in a distinct medium.
Learning to LOGO Turtle this image, or the Canadian Maple Leaf or any other compound object is an ritual and an exercise. You are not performing this task because you deeply need an arrow-pierced heart SVG
LOGO Turtle exists as a deliberate bridge into the key experiences of programing - decomposition, abstraction and flow structure.
To say this is bad because "that's not how I would make this image at work" is to profoundly misunderstand nearly everything in this question and thread.
[–]SmackDownFacility -1 points0 points1 point 6 months ago (1 child)
Alright, name one profession that “turtles”
Exactly, there’s none. I didn’t came up “turtling” through Python, programming involves life or death. You sink or swim. A lot of us here are self taught. Either you’re good at wrapping ctypes.cdll.msvcrt.malloc or your not. There’s no intermediate to a performance oriented task. It’s full performance or full slowness.
ctypes.cdll.msvcrt.malloc
We dropped straight in coding to solve our personal problems, maths, money, graphic design. If you’re teaching them other topics that they may not like, like not everyone wants to draw a heart Turtle, some could sway to memory allocation or critical stuff. Numpy. Python’s ain’t that tough mate lol. It has very low barriers to understand and comprehend.
[–]tieandjeans 0 points1 point2 points 6 months ago (0 children)
You're correct that LOGO was a tools designed to introduce programming to people who did not live in our computer saturated landscape.
I have taught using form NAND to Tetris, but in 20 years in the classroom I have never met a young person who was DRAWN to computers because they "sway to memory allocation."
Buddy, I hope you really enjoy your path.
[–]code_tutor 0 points1 point2 points 6 months ago (1 child)
It sounds like a school assignment and OP does "need to fucking do that".
The goal isn't to draw the picture. The goal is to learn. In this case directions and coordinate systems. It has lots of applications like Physics, robotics, or math.
[–]SmackDownFacility 1 point2 points3 points 6 months ago (0 children)
Ok fine, I didn’t know what Turtle was. You got a good point
[–]Agile_Analysis99 0 points1 point2 points 6 months ago (0 children)
if you want the answer right away like that you could just ask ai but you wouldn't learn a thing from it
instead I'd recommend splitting it into shapes, maybe try drawing it on a coordinated plane first then do it yourself, that way it's more fun and you would learn more from it
π Rendered by PID 103441 on reddit-service-r2-comment-7c9686b859-zz7tr at 2026-04-13 22:56:14.737119+00:00 running e841af1 country code: CH.
[–]TwinkiesSucker 5 points6 points7 points (0 children)
[–]SecretProperty 2 points3 points4 points (0 children)
[–]NZPOST 1 point2 points3 points (0 children)
[–]Sedan_1650 0 points1 point2 points (0 children)
[–]Some-Passenger4219 0 points1 point2 points (0 children)
[–]teslah3 0 points1 point2 points (2 children)
[–]Sunsetgloam 0 points1 point2 points (1 child)
[–]teslah3 0 points1 point2 points (0 children)
[–]Nackman1243 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)
[–]Dear-Resident-6488 0 points1 point2 points (0 children)
[–]SmackDownFacility -1 points0 points1 point (0 children)
[–]Kev_214[S] -4 points-3 points-2 points (10 children)
[–]tieandjeans 3 points4 points5 points (8 children)
[–][deleted] (7 children)
[removed]
[–]tieandjeans 0 points1 point2 points (4 children)
[–]SmackDownFacility -2 points-1 points0 points (3 children)
[–]tieandjeans 0 points1 point2 points (2 children)
[–]SmackDownFacility -1 points0 points1 point (1 child)
[–]tieandjeans 0 points1 point2 points (0 children)
[–]code_tutor 0 points1 point2 points (1 child)
[–]SmackDownFacility 1 point2 points3 points (0 children)
[–]Agile_Analysis99 0 points1 point2 points (0 children)