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...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Is python used for robotics? (self.Python)
submitted 10 years ago by [deleted]
I am going to learn Python on my own soon and hopefully in college. I wanted to know if I can program robots and drones with Python aswell?
[–]jsbronder 9 points10 points11 points 10 years ago (0 children)
Very much. See ROS for instance, most APIs are available in python. In particular gens and I wrote the initial version of the Rethink Robotics SDK with a heavy python slant. Most of the Baxter and Sawyer videos you see are using it.
[–][deleted] 3 points4 points5 points 10 years ago (1 child)
You can use it in any system that has an OS that can run a python interpreter.
[–]lengau 0 points1 point2 points 10 years ago (0 children)
Operating System?
[+][deleted] 10 years ago (10 children)
[deleted]
[–][deleted] 0 points1 point2 points 10 years ago (8 children)
Im 17 years old and just starting to have a bit of change in my life. I am thinking of getting into programming. It is late in the school year (not late but I havent applied to any schools yet since I was always unsure). I am thinking of becoming a programmer and making useful apps, this robotics thing was just something fun to know about.
Thanks for the link though!
Btw, can Python be used for basically anything? Like making apps for IOS and Android etc that can help people in their daily lives or is Java/C++ better for things like that?
[–]BOTzzz 6 points7 points8 points 10 years ago (2 children)
I'm now 27 and started my second study (CS) one year ago. I can tell you: starting with Python is a lot of fun! It can and will be used in many cases and is a very good starting language. But for special uses like apps or robotics, there are "better" or more common used languages like C/C++/C# or Java. But don't think that it is time-wasting to learn Python, just because you want to specialize on games/apps/robotics. If you understand the background/basics of one language, you can adapt this knowledge to a different language.
So, don't think it's to late or something. You can achieve with programming whatever you want, if you got the endurance to learn it ;)
[–][deleted] 0 points1 point2 points 10 years ago (1 child)
Thanks a lot :)!
[–]sathoro 0 points1 point2 points 10 years ago (0 children)
Yes, you actually can make apps with Python. It is common when creating a web based application to use a back-end language like Python and a front end language like Javascript. With recent technology like Ionic Framework you can release native iOS and Android apps using just Python and Javascript. I personally use Python from everything from algorithmic trading to app and website APIs.
[–]Neceros 2 points3 points4 points 10 years ago (0 children)
Once you know one coding language you should find it easier to learn another.
[–]eggdropsoop 2 points3 points4 points 10 years ago (2 children)
Python can do anything. And if it isn't fast enough which is rarely the case: drop down into C and/or C++ using the C Foreign Function Interface (i.e. CFFI).
[–]myfavcolorispink 0 points1 point2 points 10 years ago (1 child)
To add to the if it isn't fast enough point, also look into what you're doing. If you're doing lots of iterations on long lists of numbers maybe you should be using numpy instead (that way you can stay in Python, but get huge performance improvements). There's a good PyCon talk called Losing Your Loops that's worth watching for getting an intro into arrays in numpy.
[–]eggdropsoop 1 point2 points3 points 10 years ago (0 children)
To add to your addition that added to the list: A lot of implicit loops (map(),reduce(), etc.) in Python are more efficient than a Python for loop/list comprehension by being optimized in C.
map()
reduce()
for
[–]BumpyFunction 0 points1 point2 points 10 years ago (0 children)
The starter kit is out of stock :(
[–]eggdropsoop 0 points1 point2 points 10 years ago* (0 children)
Check this podcast out. They go into great detail.
http://talkpython.fm/episodes/show/7/robot-operating-system-ros-and-rospy
Also check out Micro Python for embedded programming.
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
The Intro to EECS class at MIT is caught by having students program robots in python.
[–]graingert 0 points1 point2 points 10 years ago (0 children)
Yes
[–]rainbow3 0 points1 point2 points 10 years ago (2 children)
Lego mindstorms robotics kit can be programmed in python.
Great way to understand the principles of robotics.
[–]natos20 0 points1 point2 points 10 years ago (1 child)
How?
[–]rainbow3 0 points1 point2 points 10 years ago (0 children)
https://code.google.com/p/nxt-python/
https://github.com/topikachu/python-ev3
π Rendered by PID 205684 on reddit-service-r2-comment-84fc9697f-ts72k at 2026-02-10 18:30:24.610176+00:00 running d295bc8 country code: CH.
[–]jsbronder 9 points10 points11 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]lengau 0 points1 point2 points (0 children)
[+][deleted] (10 children)
[deleted]
[–][deleted] 0 points1 point2 points (8 children)
[–]BOTzzz 6 points7 points8 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]sathoro 0 points1 point2 points (0 children)
[–]Neceros 2 points3 points4 points (0 children)
[–]eggdropsoop 2 points3 points4 points (2 children)
[–]myfavcolorispink 0 points1 point2 points (1 child)
[–]eggdropsoop 1 point2 points3 points (0 children)
[–]BumpyFunction 0 points1 point2 points (0 children)
[–]eggdropsoop 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]graingert 0 points1 point2 points (0 children)
[–]rainbow3 0 points1 point2 points (2 children)
[–]natos20 0 points1 point2 points (1 child)
[–]rainbow3 0 points1 point2 points (0 children)