Jun-07-2023, 01:06 AM
(Jun-06-2023, 08:44 AM)Gribouillis Wrote:(Jun-06-2023, 02:16 AM)Skaperen Wrote: suggestions?Just return the object. Python always returns objects by reference.
i want to increment the object. i can do this when i get it directly from a dict like so:
cars_per_train[which_train] += 1 # one car passes by so count it.if i make a different function to do the increment, i can make work. but i want to have it all done with one function that simply returns the object by its key (which_train).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.