[Tutor] understanding Functions help

2014-04-07 Thread keith papa
Hi my name is keith and am new to python programming, Am learning python for the first time with the help of coursera problem is am starting a new topic call functions in python and am totally lost. can you please help me understand how function work? why it use in python, what are the rules

Re: [Tutor] understanding Functions help

2014-04-07 Thread Alan Gauld
On 07/04/14 05:02, keith papa wrote: Hi my name is keith and am new to python programming, Am learning python for the first time with the help of coursera problem is am starting a new topic call functions in python and am totally lost. can you please help me understand how function work? why it

Re: [Tutor] understanding Functions help

2014-04-07 Thread Danny Yoo
On Sun, Apr 6, 2014 at 9:02 PM, keith papa keith...@live.com wrote: Hi my name is keith and am new to python programming, Am learning python for the first time with the help of coursera problem is am starting a new topic call functions in python and am totally lost. can you please help me

Re: [Tutor] understanding Functions help

2014-04-07 Thread S Tareq
see more on there they explained everything in there this website :  http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/index.html   On Monday, 7 April 2014, 19:34, Danny Yoo d...@hashcollision.org wrote: On Sun, Apr 6, 2014 at 9:02 PM, keith papa keith...@live.com wrote: Hi my name is keith

Re: [Tutor] understanding Functions help

2014-04-07 Thread voger
Hi, I can't speak about python as I am now discovering it my self but I do understand a bit about functions. So let me try to explain as a newbie to newbie. The examples below are not valid python code but they do display the logic. Lets say you want two temperatures in Fahrenheit but you

[Tutor] Constructs

2014-04-07 Thread Santosh Kumar
1 #!/usr/bin/python 2 3 class shape: 4 def __init__(self,x,y): 5 self.x = x 6 self.y = y 7 description = This shape has not been described yet 8 author = Nobody has claimed to make this shape yet 9 10 def __init__(self,x,y,z): 11 self.x = x 12 self.y =

[Tutor] Inheritance in classes

2014-04-07 Thread Santosh Kumar
Can i mask the parent attibutes in the child. let me give a quick example. In [1]: class a: ...: value1 = 1 ...: value2 = 2 ...: In [2]: class b(a): ...: value3 = 3 ...: In [3]: obj1 = b() In [4]: obj1.value1 Out[4]: 1 In [5]: obj1.value2 Out[5]: 2 In [6]:

[Tutor] Block highlighters in python

2014-04-07 Thread Santosh Kumar
Is there a way by which we can highlight a block in the python ? i have a huge code and i want to see a block of ``if`` code. How do i achieve this in VIM or any other editor. Note: In perl if i put my cursor on one { it will hightlight the other closed }. Do we have any such facility in python