I’m Learning Python part 10 (last one)

I'm Learning Python part 10

(last one)

Python Logo

Back to blogging

As usual, I will apologize for not blogging for a long time.
I have been very busy, university exams, university projects, job projects, teaching and learning.

Python Course

At Damascus University, in the faculty of informatics we managed to create free courses to students, and I was one of the teachers there, I taught Python to students.
As far as I know this course was the first Python course in Damascus University.
Even though the students were a few (actually a very little few about 8 ~ 10 students) the course was great. We managed to learn Python 2.6 Syntax, a little bit of its standard library and a little bit of PyQt4 in about 7 days x 2 hours daily.
As far as I know too, students understood it and found it great, and I hope they’ll be using this great language more in their programs.

Why last one?

The tour with Python ends here, while it ends here it starts here too, it ends here because so far you’ve learned what you need to start your own path in Python. And it starts here because you’re fully equipped with the base tool to discover more tools, I’ll let you discover the standard library and 3rd-party libraries on your own, because everyone differs in his/her interests.
I’ll be blogging more on more technical issues but they might not be I’m Learning Python series :).
Let’s stop talking here and move directly to the heart of our last lesson.
Continue reading “I’m Learning Python part 10 (last one)”

I’m Learning Python part 9

I’m Learning Python part 9

Python Logo

Classes In Python

As I told you before, Python is a powerful programming language, and powerful it won’t be without Object Oriented design.
Python supports both Pure Object Oriented Programming (Every thing must be in a class) and Structural Programming (You can type code everywhere).
It supports also other programming paradigms like Functional Programming. I won’t write about OOP and its uses, why we should use it, I’ll just give you the keys to use OOP in Python.

Defining a Class

Classes in Python are defined like this:

Continue reading “I’m Learning Python part 9”

I’m Learning Python part 8

I’m Learning Python part 8


Python 3.0

Since the last time I wrote an article Python many changes happened in my life, one of them is the release of Python 3.0 (Which is known also as Python3K and Python3000).

Python 3.0 is the first intentionally backwards incompatible Python release, which means that there are some changes you must notice before start coding in Python 3.0.

Don’t worry that much, the language has become more useful, and also there is 2to3 source-to-source conversion tool which converts your Python 2.x code to meet the requirements of Python 3.0 ๐Ÿ™‚

To find more about change in Python please refer to Python website.

Continue reading “I’m Learning Python part 8”

iCommunity FOSS 09

I mentioned many times before that I was planning to make a workshop about Free Open Source Software (FOSS) in Damascus, and thankfully I did ๐Ÿ™‚

The Idea

The idea was to spread the culture of FOSS between the interested people here in Damascus.
What I noticed was that almost 99% of computer science students didn’t know what Free Software is and what Open Source software is!
Continue reading “iCommunity FOSS 09”

FOSS Workshop

Hello, if you don’t know already, I’m a Computer Science student from Damascus University Syria.

My friends and I are working on an Open Source Free Software workshop here at the faculty of Computer Science, the workshop will take place on February 2009, but we are gathering some resources and information from now.

The workshop will have lectures about Open Source, Free Software, Licenses, Open Source Free alternative for Commercial Proprietary software, and of course Linux OS.

The workshop will also contain an Installation Festival where we are going to install Ubuntu 8.10 Intrepid Ibex for students on their devices and teach them how to use it.

I’m gonna put some questions here and I’ll ask you to answer it, whether you own an Open Source company or you work for one.

I’m neither a journalist nor an analyst seeker, but I want some answers from you to introduce you the way you want to students, please don’t waste this message because I’m not a journalist,ย  we want to spread the culture of Free Open Source Software here between students and contributing to the workshop would be very kind of you.

Continue reading “FOSS Workshop”

I’m Learning Python part 7

I’m Learning Python (part 7)

Python Logo


First of all I wanna apologize for being late with this part, I’ve had busy days first during Shaam 2008 expo and second during some studies at the college and last busy time past launching Bawabaty project.
Continue reading “I’m Learning Python part 7”

I’m Learning Python part 6

I’m Learning Python (part 6)

Python Logo


Dictionaries in Python are like dictionaries in life, they consist of key-value pairs, each key maps a value, values can be any object type, and keys also. Keys must be unique, I mean that we can’t have two identical keys with different values.

Continue reading “I’m Learning Python part 6”

I’m Learning Python (part 5)

I’m Learning Python (part 5)

Python Logo

String Is Immutable?

Last time I told you to try to change a specified character, you must have failed if you tried:
>>> s[0] = ‘c’
The error you’d get is:
TypeError: ‘str’ object does not support item assignment
This means that strings are immutable, so are core-types, numbers and tuples, they canโ€™t be changed, while lists and dictionaries can be changed freely.
Continue reading “I’m Learning Python (part 5)”

I’m Learning Python part 4

I’m Learning Python (part 4)

Python Logo

Why Use Built-In Types?

Most of the time in programming you’ll use lists, stacks, arrays, queues and dictionaries, so instead of constructing them, Python gives you a bunch of built-in types to use. The built-in types implement the semantic of the type ADT (Abstract Data Type), and they are fast, ‘cuz some of them are written in C and C++.
Continue reading “I’m Learning Python part 4”

I’m Learning Python part 3

I’m Learning Python (part 3)

Python Logo

What Is Interactive Mode?

When you install Python on your platform you’ll find an executable called ‘python’, when you run it you’ll find a terminal and you’ll see something like the following:
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

This is called interactive coding (or interactive mode), here you can write Python statements and the interpreter will execute them directly, let’s try:
>>> print “I Love Python”
I Love Python
>>> print 2 ** 10

Continue reading “I’m Learning Python part 3”