Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assignment operator
#5
Familiar with quite a few programming languages, I am new to Python and so have URL's and some books to hand. They all seem to list under "Operators" : Arithmetic Operators and Assignment Operators. This clearly implies that they have a different function and that if you use the wrong one an unexpected result could appear. The matter is made worse by descriptions of the assignment operators having comments like "Assignment Operator x += 3 is the same as x = x + 3" Why would I bother with the assignment operator ?

Although I am grateful for the replies you have kindly taken the trouble to send, I still cannot figure out the underlying point.
Reply


Messages In This Thread
Assignment operator - by DavidTheGrockle - Aug-08-2019, 08:47 PM
RE: Assignment operator - by jefsummers - Aug-08-2019, 08:57 PM
RE: Assignment operator - by ichabod801 - Aug-08-2019, 09:00 PM
RE: Assignment operator - by DeaD_EyE - Aug-09-2019, 01:00 AM
RE: Assignment operator - by DavidTheGrockle - Aug-10-2019, 08:05 PM
RE: Assignment operator - by perfringo - Aug-10-2019, 10:48 PM
RE: Assignment operator - by ichabod801 - Aug-10-2019, 08:13 PM
RE: Assignment operator - by ThomasL - Aug-11-2019, 07:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  assignment: not an operator nor expression, but x=y=z=3 works fine? jefdaels 1 2,266 Jan-29-2019, 02:19 PM
Last Post: perfringo
  How many variables/values are limited to single assignment operator? Prabakaran141 1 2,092 Sep-06-2018, 03:32 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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