Thread
:
Python 3.0's end = ' ' counterpart in Python 2.5.4 of Maemo?
View Single Post
kohrime
2012-01-12 , 20:18
Posts: 19 | Thanked: 0 times | Joined on Sep 2011
#
1
Hi! I am studying & familiarizing Python (again) through reading "Head First Python" book on the go using Nokia N900's Python 2.5.4, vim and evince. I most of the time can only study at the moment besides weekends during my relatively long trips going to and from work.
I'm at the moment stomped with the line:
Code:
print("\t", end=' ')
As that is available only at Python 3.0 which the book I'm faithfully following as possible instructed. I tried googling about it and all I found is using
Code:
from __future__ import print_function
but honestly, that did not work and still returns an error of invalid syntax.
Would it be alright to ask what would be the best solution or counterpart of that syntax in Python 2.5.4?
Thank you in advance
PS: Yes, one of the reasons I'm learning Python is for development also in the N900 (which I eventually want to build a Plurk client). Sadly, I'm mostly crunching my little free time and can only study during the time I'm traveling.
PPS: I also apologize if I posted this in the wrong section. Kindly move if necessary.
Quote & Reply
|
kohrime
View Public Profile
Send a private message to kohrime
Find all posts by kohrime