Open in TheBrain

Math Arithmetic

<p>&#62;&#62;&#62; 7/3

gives me 2 but if do

&#160;

7.0/3 &#160;it gives me a float &#160;2.3333

&#160;

"bob" or 'bob' &#160;returns "bob" &#160;&#160;a string

&#160;

note: &#160;the python interpreter goes thru a READ, EVAL, PRINT loop

&#160;

&#62;&#62;&#62; &#160;bob=2 &#160;&#160;means &#160;bob gets 2

&#160;

&#62;&#62;&#62; bob &#160;will return 2

&#160;

&#62;&#62;&#62; &#160;jane = 3

&#160;

&#62;&#62;&#62; bob + jane &#160;=&#62; 5

&#160;

&#160;

&#160;

&#160;

&#160;

&#160;

&#160;</p>