Python Programming

Pharaoh

Allenatore
Allenatore
Joined
Nov 29, 2011
Messages
7,474
Likes
59
Favorite Player
Me
Forum Supporter
10 years of FIF
Hey fellas,



Since I don't have much to do at work lately I decided to pick up a new language and always wanted to learn python, so I was wondering if anybody here had a good book for learning python.


Ive done some coding but it's fairly limited lol.


Any help would be much appreciated!
 

Pajo

Moderator
Moderator
Joined
Apr 8, 2006
Messages
38,755
Likes
287
Favorite Player
Sergio Aguero!
10 years of FIF
I'd like to know also. Couldn't apply for a job offer, since i didn't know the language :palm: And had all other characteristics to apply. I talked to the company manager to give me a week or two time to learn it, he declined, he said they need the man right away. Cunt.
 

Pharaoh

Allenatore
Allenatore
Joined
Nov 29, 2011
Messages
7,474
Likes
59
Favorite Player
Me
Forum Supporter
10 years of FIF
Well Pajo as of now I've been reading through a book "Python Programming for the Absolute Beginner" and its okay but kinda meh. There is also a free book link here: http://getpython3.com/diveintopython3/

But I don't know how great it is. I was just asking here incase someone had a great experience with a book and was willing to recommend it.
 

Devious

Somebody stop me!
La Grande Inter
Joined
Oct 1, 2006
Messages
16,876
Likes
921
Favorite Player
Javier Zanetti
10 years of FIF
Most Diverse Poster
Have always had an addiction for prog. languages, had a little journey in each one of them, but never completed any, I get bored too early, actually specially when I find things are becoming easier.. lame.
 

.h.

Part time Lazarus
La Grande Inter
Joined
Jun 8, 2005
Messages
29,302
Likes
7,384
Favorite Player
Inter1-0Wanda
Old username
browha
Forum Supporter
10 years of FIF
It's easy to get the basics in python.... and then at some point it just becomes a question of knowing all the (many) modules that can be imported...
 

Pajo

Moderator
Moderator
Joined
Apr 8, 2006
Messages
38,755
Likes
287
Favorite Player
Sergio Aguero!
10 years of FIF
Can't that be said about most of the programming languages tho?
 

.h.

Part time Lazarus
La Grande Inter
Joined
Jun 8, 2005
Messages
29,302
Likes
7,384
Favorite Player
Inter1-0Wanda
Old username
browha
Forum Supporter
10 years of FIF
Yeah but python is piss easy.


Hello world:

print "Hello world"



Read in from a file, split each line by commas:

myfile = open('input.csv')

for line in myfile:
tokens = line.split(',')




If your input file is something like

entry1,entry2,entry3

then tokens[0] is entry1, tokens[1] is entry2, tokens[2] is entry3


have fun doing that in C, C++, or Java.



x= ['hi', 3, 16, 'fuck']

for it in x:
print it



no type def problems or anything like that. Just smooth...

Again, good luck with that in C++ or something similar.

edit; some indentation issues.. python is white space separated so be aware of that
 

Wobblz

Allenatore
Allenatore
Joined
Aug 5, 2012
Messages
9,187
Likes
646
Favorite Player
Baggio
10 years of FIF
As far as I know Python was developed by a linguist rather than a coder so such syntaxis makes sense.
 

.h.

Part time Lazarus
La Grande Inter
Joined
Jun 8, 2005
Messages
29,302
Likes
7,384
Favorite Player
Inter1-0Wanda
Old username
browha
Forum Supporter
10 years of FIF
As far as I know Python was developed by a linguist rather than a coder so such syntaxis makes sense.

Was it? I dont know. But there's an AWFUL lot of quite heavy going C/C++ behind the scenes which actually makes it all work.
 

Pajo

Moderator
Moderator
Joined
Apr 8, 2006
Messages
38,755
Likes
287
Favorite Player
Sergio Aguero!
10 years of FIF
Well, at work i mostly use microsoft based technologies, basically c#. I've been coding in Java and c++ as well, but nothing can beat c# imo.
 

.h.

Part time Lazarus
La Grande Inter
Joined
Jun 8, 2005
Messages
29,302
Likes
7,384
Favorite Player
Inter1-0Wanda
Old username
browha
Forum Supporter
10 years of FIF
It depends what your metric is.

for going from idea to working program quickly, python is the best. No argument.
 

Pajo

Moderator
Moderator
Joined
Apr 8, 2006
Messages
38,755
Likes
287
Favorite Player
Sergio Aguero!
10 years of FIF
What about stability? Other systems integration?

Python, even c++ for that matter is ok for small systems that don't work with other ones, maybe some SQL and that's about it. Nothing can beat C# in stability, integration with other systems, already made libraries, and so on, and so on... :)
 

Pajo

Moderator
Moderator
Joined
Apr 8, 2006
Messages
38,755
Likes
287
Favorite Player
Sergio Aguero!
10 years of FIF
that's what JAVA is made for .

And still not stable as c#, even tho just a bit faster. About the integration issue, c# and java are about the same. Java has some problems integrating with microsoft technologies and MSSQL, while c# has problems with oracle and apache servers. All is fixed tho, lot's of scripts and plugins, as well as libraries are provided for work. I'd rate them just about the same, c# slightly higher.
 

Wobblz

Allenatore
Allenatore
Joined
Aug 5, 2012
Messages
9,187
Likes
646
Favorite Player
Baggio
10 years of FIF
Was it? I dont know. But there's an AWFUL lot of quite heavy going C/C++ behind the scenes which actually makes it all work.

Nope, turns out it's just a rumor. :) Guido Van Rossum is the man.
 

Mino

Capitano
Capitano
Joined
Mar 23, 2010
Messages
3,754
Likes
155
Most Pessimistic Member
10 years of FIF
And still not stable as c#, even tho just a bit faster. About the integration issue, c# and java are about the same. Java has some problems integrating with microsoft technologies and MSSQL, while c# has problems with oracle and apache servers. All is fixed tho, lot's of scripts and plugins, as well as libraries are provided for work. I'd rate them just about the same, c# slightly higher.

i misunderstood you . i meant code execution platforms .
in Java , write once , execute anywhere . it's an interpreted language not compiled like C# .

about the integration with other services and applications , there is millions of packages to use , a large active community of different platforms and devices .

imho Java is the best language to learn if you want to earn money and fuck bitches .

C# is lower than java (closer to the machine) , perfect for microsoft systems .
 

Pajo

Moderator
Moderator
Joined
Apr 8, 2006
Messages
38,755
Likes
287
Favorite Player
Sergio Aguero!
10 years of FIF
Well, developing c# based applications can earn you lots of money too :D WinForms, WebForms, or in newer age MVC applications are very appreciated. Especially complex ones that need stability and good debugging options/tests :)
 

Fitzy

La Grande Inter
La Grande Inter
Joined
Aug 21, 2009
Messages
12,400
Likes
3,838
Favorite Player
Zanetti
Forum Supporter
Most Humorous Member
10 years of FIF

Pimpin

I'm better than Icardi
La Grande Inter
Joined
Jul 13, 2011
Messages
17,058
Likes
1,236
Favorite Player
22IcardiBroHand
Old username
DomesticatedPimp
10 years of FIF
no programming can help u fuck bitches.

#pimpWisdom #daretopimp
 
Top