Aug-08-2019, 09:00 PM
I'm not sure what you mean by arithmetic operator. The assignment operator (=) is often confused with the comparison operator (==), however.
>>> breakfast = 'spam' # assigns a value to the breakfast variable >>> breakfast # show that value 'spam' >>> breakfast == 'eggs' # compares the breakfast variable to another value. False >>> breakfast == 'spam' TrueThe assignment operator is for storing values in variables. The comparison operator is usually used in conditionals (if/elif) and while loops.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures