Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Python only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Python
Optional assignments ?
Optional assignments ?
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Madhusudan Singh
#1
Optional assignments ?
Aug 7 '05, 05:35 PM
Hi
Is it possible to have something like :
a,b,c,d=fn(that returns 10 return values) ?
Robert Kern
#2
Aug 7 '05, 05:55 PM
Re: Optional assignments ?
Madhusudan Singh wrote:[color=blue]
> Hi
>
> Is it possible to have something like :
>
> a,b,c,d=fn(that returns 10 return values) ?[/color]
a,b,c,d = fn()[:4]
--
Robert Kern
rkern@ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Comment
Post
Cancel
Madhusudan Singh
#3
Aug 7 '05, 06:45 PM
Re: Optional assignments ?
Robert Kern wrote:
[color=blue]
> Madhusudan Singh wrote:[color=green]
>> Hi
>>
>> Is it possible to have something like :
>>
>> a,b,c,d=fn(that returns 10 return values) ?[/color]
>
> a,b,c,d = fn()[:4]
>[/color]
Thanks !
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment