What can be done with Python?

Guca

Active Member
Joined
Jun 1, 2015
Messages
80
Reaction score
8
Hi guys

I am relatively new to programming and want to find out about Python programming language I have been taking tutorials on it and want to know 1 what can you do with Python ? 2 can you create mobile apps (the kind you get on apps stores) and windows application (the exe type not the py type whereby you have to install Python to run those apps) from scratch without using other languages 3 what are the applications that have been developed using Python ? ( I know Google and YouTube etc uses it but I want to know which other apps have been created from scratch using Python ) 4 is it a worthy language to have as a programmer? ( I know it's good to learn it as a start )

Thanks in advanced

Guca
 
SSSSSsssSSSSSSSSSSSSSSSS ssssSSSSSSSSSsssssssssssssssssssSSsssssssssSSSSSSSSSSSsssssssssssSSSSSSSSSsss

Translation: Python is a pretty high level language and should help you grasp basic concepts without worrying to much about things like memory addressing. It's a good start but isn't super good at any one thing.

Having it run on mobile depends quite a lot on the mobile you're trying to run it on (Android is your best bet) - however it definitely isn't the standard. You may be able to compile the python code for use in an ARM processor - but that is likely to be a lot of effort and depends heavily on the hardware you're trying to run it on. You can compile the python code into an x86 executable (something like a .exe file for windows) but it's probably not the most efficient way to do so. It's a nice language to learn some basics on, before you move on to hard mode languages (C++, C#, C and let's hope you'll never see B) or more specific use languages (MATLAB, MuPAD, VB etc.)
 
You can use something like py2exe.

Great for learning and I'll admit I have a soft spot for it. As for use: We wrote most of the SARS system with it so it is powerful. The reason it was picked though had a lot more to do with ease of code maintenance/change and the lack of c++ devs available (100+ people in team to cope with workload). Personally I think Java would've been a better choice.

That being said, I don't think it is that relevant anymore. Newer languages and technologies like Go/Golang and Node.js makes it obsolete. Go, btw, gives you your binaries without having to install a framework and is very very fast (python is slow, pypy does make it faster).

I'll always like python but it belongs in schools and in your hobbie projects. Learn it anyway, it is easy and fun.

/flamesuit
 
My company uses Python for "glue": deployment, monitoring, tools, automation, etc. All the core code is written in either C or C++. Some here also use it for data analytics (numpy/scipy), but we mostly use R now.
 
You can use something like py2exe.

Great for learning and I'll admit I have a soft spot for it. As for use: We wrote most of the SARS system with it so it is powerful. The reason it was picked though had a lot more to do with ease of code maintenance/change and the lack of c++ devs available (100+ people in team to cope with workload). Personally I think Java would've been a better choice.

That being said, I don't think it is that relevant anymore. Newer languages and technologies like Go/Golang and Node.js makes it obsolete. Go, btw, gives you your binaries without having to install a framework and is very very fast (python is slow, pypy does make it faster).

I'll always like python but it belongs in schools and in your hobbie projects. Learn it anyway, it is easy and fun.

/flamesuit

Aha! Now I know who to rant to when eFiling goes down :p ;)

@OP - Python is still relevant. It is in a number of spaces (web, desktop, mobile, game programming, OS tools etc).

Don't take my word for it. Have a look at the number of jobs that have the python keyword on stackoverflow. It is not an indication of how big or small the usage of python is. Rather, it shows that it is still very relevant.

It has a large number of libraries and frameworks. Hence, LOTS of jobs still require use of it or some knowledge of it. Maybe the "good and the bad" with python is that it is very general purpose.

Like with anything in programming, you need to know when to use a tool. If you need bleeding performance on an embedded device, go use C or assembly. Maybe you need to dish out a quick rest api, try the flash framework written in python. I'm sure you get the idea.
 
Well , look into Django

That is a python web framework to build web apps (which also implies this will work on mobile). With Django the output is say HTML5/Javascript , but you can do this all in python. Simple example, i absolutely hate coding in javascript (just a thing i have), so all these messy Ajax/Async type of stuff you get within HTML can be controlled with python coding instead (for me , this is much easier to read,debug and structure than having javascript scripts all over the place).

But each to their own.
 
Well , look into Django

That is a python web framework to build web apps (which also implies this will work on mobile). With Django the output is say HTML5/Javascript , but you can do this all in python. Simple example, i absolutely hate coding in javascript (just a thing i have), so all these messy Ajax/Async type of stuff you get within HTML can be controlled with python coding instead (for me , this is much easier to read,debug and structure than having javascript scripts all over the place).

But each to their own.

I'm not the biggest fan of JavaScript either. It numbs my soul.

Python + Tornado package

Code:
import tornado.ioloop
import tornado.web

class IndexHandler(tornado.web.RequestHandler):
	def get(self):
		self.write("Hello world!")
		
class OtherHandler(tornado.web.RequestHandler):
	def get(self, action, id):
		self.write("Hello, " + action +", "+ id)		
		
application = tornado.web.Application([
	(r"/", IndexHandler),
	(r"/other/(.*)/(.*)", OtherHandler), # <-- lol, tits with flower tatoos
])

if __name__ == "__main__":
	application.listen(5000)
	tornado.ioloop.IOLoop.current().start()
 
Python is awesome for web apps that need to be deployed easily. I'm currently writing a Python app for Plex and I really haven't come to any point where I couldn't get done what I needed to do.
 
That is a python web framework to build web apps (which also implies this will work on mobile). With Django the output is say HTML5/Javascript , but you can do this all in python. Simple example, i absolutely hate coding in javascript (just a thing i have), so all these messy Ajax/Async type of stuff you get within HTML can be controlled with python coding instead (for me , this is much easier to read,debug and structure than having javascript scripts all over the place).


Yeah, if you're coding js like its 1999 then perhaps, but you sound very behind in the times of js development.
 
Or maybe you just don't know the power of python....

I never said anything about its power, I commented on your js comment (makes you come across as very uninformed), and I used python for 3 1/2 years. :sick:
 
I never said anything about its power, I commented on your js comment (makes you come across as very uninformed), and I used python for 3 1/2 years. :sick:

Well i am not here to argue js/node/angular vs python. I still prefer python/java/c# as my server-side language and js on the presentation layer...it is just a case of being able to get more mature frameworks/packages and structure in the projects, especially when working with enterprise systems. I am fully aware what one can do with js (and the frameworks popping out every few months) , it still doesn't mean it needs to be the hammer to every nail.
Python is language with a ton of frameworks that has nothing to do with web. Just because i prefer a matured web framework (with amazing support and dev tools) over something like node or angular (which is moving blindingly fast) doesn't mean i am uninformed, just means i am not in position to constantly change tech on huge projects at a whim because paypal decided to rewrite their system in a new js framework.
 
Top
Sign up to the MyBroadband newsletter
X