in reply to set context for method's return values
You were close: print( (split(",", "A,B,C,D"))[2] )
Nitpick: split is not a method, methods are called with ->.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: set context for method's return values
by demoralizer (Beadle) on Jan 25, 2022 at 15:22 UTC |