rob86 2 Report post Posted October 25, 2009 Anyone out there learning Python or interested in learning? I just started learning it, and I find it one of the more fun and easy programming languages I've tried. I don't know why it's fun, but it must be the easy to type syntax and the not so strict rules. The only problem is, it's hard for me to get motivated to learn it and do the exercises. I think it'd make it more interesting if I talked to someone who was doing the same exercises and reading the same lessons or at least at the same learning stage. Nobody I know finds programming interesting :PI've been reading Think Python: How to think like a Computer Scientist for my learning material, which seems to be a free book, and it also looks to be quite good. Though I've been a bit lazy with the exercises..So if anyone is trying or wanting to learn python (an easy programming language) and wants someone to discuss exercises or beginner related things with.. let me know! Share this post Link to post Share on other sites
mahesh2k 0 Report post Posted October 25, 2009 I've completed my semister with multiple programming languages lab. In that lab, i've used python and many other scripting languages and scientific languages like matlab etc. Python is fast and very easy to learn. I've written few tutorials on it. If you're interested i can post links for you. That online book: Thinking like computer science(python) version is very easy written book. Other than that i downloaded one more tutorial which was more on practicing with problems. Also i did found activestate's activepython IDE very good for learning. More features than IDLE. There are also some good programs and community on activestate's site. If you've any specific issue you can ask me. If i able to find solution for it, i'll definitely help you. You can post your own exercises in this thread. If others have solved it or think it's interesting then they can note that down. Share this post Link to post Share on other sites
truefusion 3 Report post Posted October 25, 2009 I already know Python (though not like an expert) and i use it to make programs before i convert them to C++. It's quicker this way for testing things out, as it doesn't require compiling the program just to do one small task. Also, a lot of desktop environments, like GNOME and KDE, have their own Python modules so you can build Python scripts to extend the interface. What i like about Python is that it doesn't require (does away with) curly brackets for blocks of code. Python is also installed by default on many or most distributions of Linux.Python was easy to learn for me due to my knowledge in PHP and JavaScript. From there all i really needed to know was the differences in its syntax and what other things it does differently from these other scripting languages. Share this post Link to post Share on other sites
magiccode9 0 Report post Posted October 28, 2009 For python, I also a beginner for just not enough 1 month.But, more or less I can say. It has some surprise when programming with it.One interesting for me it that it does't allowed assign initial value directly with a function, like this, i, y = 0, len(s); You can't do this with,i, y = len(s); I work this on some older version.Newer version might changed already.Also, check the module lib's source code you will learn a lot and this might on advanced topics only. Share this post Link to post Share on other sites
rob86 2 Report post Posted October 29, 2009 (edited) I'm not sure really what you're tryng to do there, magiccode. Assign len(s) to two variables at the same time?This looks kind of weird, but it works.. probably not what you're doing though. i, y = [len('this is my string')]*2 Edited October 29, 2009 by rob86 (see edit history) Share this post Link to post Share on other sites
BCD 1 Report post Posted October 29, 2009 Hi rob, I am interested in learning Python and it would be great to discuss with other learners. So far, it has been going fine, there are some excellent tutorials I have gone through like this and this. I have some queries. I run my scripts on PC and it works just fine. But how do I run on server (Xisto - Web Hosting). Not long back I posted a thread regarding this, but have lost track of it. Could somebody tell the process on to how to go about running a simple hello world script on server? I also looked a bit on google apps engine, but those tutorials and procedure went well over my head. For now I am just searching for a solution to get Python scripts running on my hosting account.Talking about Python language, it has made me write neater, properly indented codes in other languages too like C and PHP.@mahesh2k: Are those tutorials targeted for beginners, if so, I would like to see those tutorials. Share this post Link to post Share on other sites
magiccode9 0 Report post Posted October 29, 2009 (edited) rob86  Yes, you are right. At first, it really looks interesting for me. But it actually is the implementation of the string module[1]. It's due to I need to figture out some issues about my script. So, I checked out the string module and found this (on the strip function).  I think this might be a shorthand for something. For now I knew that it is to get the number of chars a string has and assign it to var y. Because I'am still working with module, package and namespaces. I will back again and see how this work.   Although the concept about these three are simple enough. I still lost on some concept, particularly the namespaces.  Things such as sys.builtin_module_names sys.modules __builtins__ when within an interactive prompt and in modules.   I got these three book as my desktop reference, plus some basic quick start materials. But haven't started reading any of these but only the quick start meterials.  How about you ?  Python in a nutshell Learning Python Programming Python   [1] /usr/lib/pythonx.x  *edit* fix a typo. Edited October 29, 2009 by magiccode9 (see edit history) Share this post Link to post Share on other sites
mahesh2k 0 Report post Posted October 29, 2009 @mahesh2k: Are those tutorials targeted for beginners, if so, I would like to see those tutorials.Yes, they're targeted at beginners. I have completed some basic parts of working with python idle, book suggestion and syntax etc. I'm going to write more on loops, function, tulips, dictionary as well. But i need some time to do that. For complete newbie i have one tutorial up. I can post if anyone is interested. or if anyone want to see the tutorial on tulips, dictionary and other python related things. Then i can say you'll soon see some tutorials from me. I'll post the links for them soon. Share this post Link to post Share on other sites
Quatrux 4 Report post Posted October 29, 2009 I used to learn Python on my own at home, it was fun, I know the basics, but I never really got into it, because couldn't use it anywhere. My work is mainly with PHP and all the related stuff and in university they don't teach us Python and I doubt they will, it's mainly Asm, C, C++, C# and Java there and lots of theory if talking about programming languages and related to it stuff like OOP Share this post Link to post Share on other sites
TheDarkHacker 0 Report post Posted October 29, 2009 I am trying to learn more languages.For now this is the list,and programming languages i know...1.PHP2.ActionScript3.HTML and JavaScript4.Visual Basic 65.GMLPHP's syntax is very simple,there are no special characters,only dollar($) which is used for variables.ActionScript for me,i think is very simple-the same like JavaScript but more options for scenes,effects etc. One time i tried,and it worked---to use JavaScript script and paste it to Flash.Amazing but i needed only to replace document.write with wr.text HTML is that much stupid,and i am using it only with PHP...Visual Basic is hard because there are lots of things.GML is simple programming language used on Game Maker to move objects,add effects,draw 3D models,add gravity on own games.Now i am not sure should i start with Pyton.As i can see this is not simple...Can someone give me the best website with tutorials and the simplest way to learn.Is there free hosting with Python or i need to pay for special host? Share this post Link to post Share on other sites