# Learning python

**URL:** https://discourse.processing.org/t/learning-python/26492
**Category:** Processing.py
**Created:** [December 24, 2020, 12:34pm UTC](https://discourse.processing.org/t/learning-python/26492 "2020-12-24T12:34:02Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [December 25, 2020, 8:04pm UTC](https://discourse.processing.org/t/learning-python/26492/9 "2020-12-25T20:04:15Z")

</div>

In these 3 links below you’re gonna find the same sketch written in Python Mode, Java Mode & p5.js flavors so you can compare their syntax: 🔗

> [@Issues with smooth 2D movement in python](https://discourse.processing.org/t/issues-with-smooth-2d-movement-in-python/18556/4):
>
> That’s a very old sketch of mine. innocent BtW, I did a followup w/ 2 players instead of 1 both for Java Mode & p5js flavors: sunglasses And now I’ve decided to do a Python Mode version as well. Check it out: snake #!/bin/python2 """ Players Movement (v1.1.0) by GoToLoop (2020/Mar/11) Discourse.Processing.org/t/issues-with-smooth-2d-movement-in-python/18556/4 GoToLoop.Trinket.io/sites/players-movement Trinket.io/processing/62fab051ed Reddit.com/r/processing/comments/bshqa8/ ho…

> [@Vertex, loop and draw along a vertex path](https://discourse.processing.org/t/vertex-loop-and-draw-along-a-vertex-path/4545/4):
>
> And while I was at it, I did a Python Mode version too: snake “Knot3D.pyde”: """ \* 3D Knot (2017/Dec) \* Daniel Shiffman \* https://YouTu.be/r6YMKr1X0VA \* \* Mod GoToLoop (v1.0.3) (2018/Oct/16) \* https://OpenProcessing.org/sketch/608725 (pjs) \* https://OpenProcessing.org/sketch/608726 (p5js) \* \* https://Discourse.Processing.org/t/ \* vertex-loop-and-draw-along-a-vertex-path/4545/4 """ """ \* http://PaulBourke.net/geometry/knots/ \* Knot 4 (1992/Oct): \* \* r(beta) = 0.8 + 1.6 \* sin(6 \*…

> [@Reducing points in polygon](https://discourse.processing.org/t/reducing-points-in-polygon/13590/3):
>
> I’ve made a Python Mode version too: snake RamerDouglasPeucker.pyde: """ \* Ramer-Douglas-Peucker Algorithm (v1.2.3) \* GoToLoop & JeffThompson (2019/Aug/27) \* \* https://Discourse.Processing.org/t/reducing-points-in-polygon/13590/3 \* \* https://en.Wikipedia.org/wiki/Ramer-Douglas-Peucker\_algorithm \* https://Karthaus.nl/rdp/js/rdp2.js \* \* https://Bl.ocks.org/GoToLoop/a5db257be4d7756a00220a3e97066dd5 \* https://www.OpenProcessing.org/sketch/747172 """ from Calc import reducePolygon from…

---

_[View the full topic](https://discourse.processing.org/t/learning-python/26492)._
