Python Forum
assignment embedded in an expression
Thread Rating:
  • 3 Vote(s) - 2.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
assignment embedded in an expression
#6
it is allowed in C.  i do it a lot.

it has worked in Python.  i usually use it for initialization of two or more variables to the same value, typically None.  in C typically 0 or NULL.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
assignment embedded in an expression - by Skaperen - Nov-22-2017, 08:37 AM
RE: assignment embedded in an expression - by Skaperen - Nov-23-2017, 05:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pass results of expression to another expression cmdr_eggplant 2 2,420 Mar-26-2020, 06:59 AM
Last Post: ndc85430
  assignment: not an operator nor expression, but x=y=z=3 works fine? jefdaels 1 2,290 Jan-29-2019, 02:19 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020