Thank you Venkat.
Regards,
Ranjith
On Mon, Jul 4, 2016 at 9:30 PM, wrote:
> Send Chennaipy mailing list submissions to
> chennaipy@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.python.org/mailman/listinfo/chennaipy
> or, via email, se
you do want to modify the global variable, you need to explicitly tell
the interpreter that you would like to work with the global variable.
x = 1
def f():
global x
x = 5
print (x)
f () #prints 5
print (x) #prints 5
Date: Fri, 1 Jul 2016 16:57:48 +0530
> From: ranjith
Hello friends,
I have a question to ask.
If you define the following cases:
Case 1:
---
x = 1
def f():
print(x)
Case 2:
---
x = 1
def f():
print(x)
x = 5
print(x)
If you call the function f, in case 1 there won't be a problem, It will
print 1. But in case 2, it
.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Chennaipy digest..."
>
>
> Today's Topics:
>
>1. Chennai Py talk topic (ranjith pillay)
>2. Re: Chennai Py talk topic (Vijay Kumar)
>
>
> -
programming. I will cover the basics on these two
topics in my 20 minute talk and try to make it simpler for people who have
not used it before.
Thanks.
Regards,
Ranjith Pillay
On Wed, Jun 15, 2016 at 9:30 PM, wrote:
> Send Chennaipy mailing list submissions to
> chennaipy@pyth
Hi,
I could'nt locate today's meetup venue. Guess Google map does not point at
the right place. I spent some time trying to locate the venue.
Regards
Ranjith
On 26-Mar-2016 9:30 PM, wrote:
> Send Chennaipy mailing list submissions to
> chennaipy@python.org
>
> To subscribe or unsubscri