Quantcast

Jump to content


Photo

[How To] Noobies Guide to Python


  • Please log in to reply
45 replies to this topic

#26 Norava

Norava
  • Pro Can Cran

  • 547 posts


Users Awards

Posted 21 September 2011 - 07:29 PM

  • Windows: Start -> Run -> Type "cmd"
  • Linux: Applications -> Accessories -> Terminal
  • Mac: I have no clue >> not a mac person


I know it's not very important, but as I read this I figured if there are mac users reading this, and don't know how to get the command prompt, its

Applications -> Utilities -> Terminal

#27 Crispin

Crispin
  • 48 posts

Posted 04 January 2012 - 09:53 AM

I'm learning Python 3 currently. TheMonkeyLords has an excellent tutorial series for Python 3 on Youtube.
http://www.youtube.c.../videos?view=pl

There's also a book called a Byte of Python that has a version for both Python 3 and 2. It's available online for free as a PDF, though I recommend starting with the video tutorial.

If you're learning Python 2 I suggest you give MIT's Python lectures a chance.
http://ocw.mit.edu/c...video-lectures/

And, of course, to encourage you to actually program, try solving some problems on Project Euler.
http://projecteuler.net/

Good luck!

#28 Irradium

Irradium
  • Pyro (699) Maniac

  • 892 posts


Users Awards

Posted 05 May 2012 - 12:44 AM

Finally read this through properly for once, and I have to say, nice guide Cody. I already know most of these tricks myself, but I can see you put a lot of effort into this. :)

#29 Pyro699

Pyro699
  • 1543 posts


Users Awards

Posted 05 May 2012 - 05:30 PM

Finally read this through properly for once, and I have to say, nice guide Cody. I already know most of these tricks myself, but I can see you put a lot of effort into this. :)

Hense the title "Noobies" ;)

#30 Irradium

Irradium
  • Pyro (699) Maniac

  • 892 posts


Users Awards

Posted 06 May 2012 - 12:07 AM

Hense the title "Noobies" ;)


Touche. :)

#31 MysteryMunch

MysteryMunch
  • 53 posts


Users Awards

Posted 21 August 2012 - 09:24 AM

Newbie question:

I'm going to sign up for another programming class next semester. I'm a psychology/engineering double major with the goal of designing medical equipment for people with neurological/cognitive disabilities. My intro to programming class taught C and Java, and I got a near-perfect score in the class. Does anybody have recommendations for the type of class I should be taking? Which languages are most useful to learn? When I google it, I tend to get lots of highly technical stuff or else really simple things like yet another definition of "compiler".

Edited by MysteryMunch, 21 August 2012 - 09:26 AM.


#32 huevoquilmes

huevoquilmes
  • 245 posts

Posted 21 August 2012 - 09:55 AM

From my personal experience, once you get your head around any high-level language (C++,Java,Python), migrating to another one is very simple, just have to read some documentation and you are done. The hardest thing to do, is to understand how it all works the first time, but if you got good grades in Java, you probably already delt with that problem :)

#33 liquidnails

liquidnails
  • 40 posts

Posted 19 January 2013 - 10:57 AM

From my personal experience, once you get your head around any high-level language (C++,Java,Python), migrating to another one is very simple, just have to read some documentation and you are done. The hardest thing to do, is to understand how it all works the first time, but if you got good grades in Java, you probably already delt with that problem :)


Couldn't agree more. :D

#34 sgwannabe

sgwannabe
  • 2 posts

Posted 11 May 2013 - 01:21 PM

i want to learn some programming so i picked up a book about c++

python seems useful too though



#35 ChrisGnareaga

ChrisGnareaga
  • 1 posts

Posted 18 May 2013 - 09:02 PM

does anyone have any ideas for a begginer / intermediate challenges i could write like a program to write that would challenge me??



#36 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 19 May 2013 - 07:34 AM

does anyone have any ideas for a begginer / intermediate challenges i could write like a program to write that would challenge me??


Something like a Shop Wizard autobuyer or a Kitchen Quest completer would be a decent starter program.

#37 ChristianCareaga

ChristianCareaga
  • 40 posts

Posted 31 July 2013 - 05:42 AM

Wow, I thing I'll try this out, thanks for the awesome guide. Hopefully I'm not too much of a noob for this.

And this is where it all started....



#38 Guest_Scarletfire_*

Guest_Scarletfire_*

Posted 25 October 2014 - 03:49 PM

I tried doing

print "Hello World" 

then it says that I'm missing parenthesis. It only worked with

print ("Hello World")


#39 Stephen

Stephen
  • 3527 posts


Users Awards

Posted 31 October 2014 - 02:21 AM

 

I tried doing

print "Hello World" 

then it says that I'm missing parenthesis. It only worked with

print ("Hello World")

 

https://docs.python....atsnew/3.0.html



#40 Guest_Scarletfire_*

Guest_Scarletfire_*

Posted 01 November 2014 - 08:13 PM

 

Oh okay, thanks for the clarification. Before, I was wondering why a lot of the python softwares (Like the habi bot) only uses python 2.6 before... 



#41 DregsandDregs

DregsandDregs
  • 127 posts

Posted 04 February 2015 - 07:41 PM

Oh okay, thanks for the clarification. Before, I was wondering why a lot of the python softwares (Like the habi bot) only uses python 2.6 before... 

 

Because python 2.x lasted for a long time until 2.6, then they rolled out 3 and developers and everyone were...displeased.  Displeased enough that they were forced to release 2.7 backporting some 3 stuff and just keeping up with the world.

 

Because most people/developers use 2.x, people continue to learn 2.x instead of 3, which encourages more developers to not switch to 3...so basically critical saturation.



#42 Pyro699

Pyro699
  • 1543 posts


Users Awards

Posted 04 February 2015 - 10:21 PM

Even at work we use python 2.7 and have no plans at all for moving to python 3

#43 Padme

Padme
  • Tofu Tatas

  • 1687 posts


Users Awards

Posted 05 February 2015 - 11:19 PM

Even at work we use python 2.7 and have no plans at all for moving to python 3

 

Give me a windows computer and I'll be your protege. 



#44 jorrakay

jorrakay
  • 7 posts


Users Awards

Posted 06 February 2015 - 11:59 AM

 

I tried doing

print "Hello World" 

then it says that I'm missing parenthesis. It only worked with

print ("Hello World")

 

Yeah the python 3 changes are annoying... Which is why many people have totally ignored 3 :) There are helpful libraries for this though, check out six. Really handy for when you want your program to run on both 2.7 and 3+

 

 

Give me a windows computer and I'll be your protege. 

 

Oh man, there's nothing I like less than development on Windows in general, let alone python. Compared to the simplicity of installing packages with Linux and stuff it's a nightmare. But you can get some sanity back with virtualenv and pip.

 

 

Even at work we use python 2.7 and have no plans at all for moving to python 3

 

I wish we used Python at work. We're stuck with PHP (kill me) because of this gigantic legacy app that no one wants to pay for a rewrite of.



#45 Pyro699

Pyro699
  • 1543 posts


Users Awards

Posted 06 February 2015 - 01:02 PM

Oh god - php xD Have fun man :)

 

Also - i enjoy doing development on windows under the right conditions. That being having a virtualbox setup with linux on it and use putty to ssh into it. Then set up a samba share (or similar) and map it on your windows machine.

 

I spent the first year at my company doing that kind of a setup and now im using Mac - not my real choice, but they got us the most expensive one - so it does have some decent computing power (which is actually required by some of our applications).



#46 ebsarvesh

ebsarvesh
  • 12 posts

Posted 08 June 2015 - 08:05 AM

It would be great if you write guides for neo bots using the latest my mechanize module for python.
@Pyro699

Edited by ebsarvesh, 08 June 2015 - 08:05 AM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users