美文网首页
Variables & Strings

Variables & Strings

作者: Norman_Plus | 来源:发表于2017-10-05 21:13 被阅读0次

Assignment Statement:

NAME = EXPRESSION

Variables can vary.

when we use the name again, then we refer to the new value.

We have assignment, the same expression can have different meanings at different times we evaluate it.

The important thing to notice, this is not an equal symbol. This looks likes an equal symbol. In python and in most programming language, equal does not mean equal. What equal means is assignment. You should really think of it as an arrow. It is an arrow saying put whatever value of the right side evaluates to the name on the left side.

String is a sequence of characters with quotes.

相关文章

网友评论

      本文标题:Variables & Strings

      本文链接:https://www.haomeiwen.com/subject/fwukyxtx.html