Python values variables: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
==Define a string== | ==Define a string== | ||
<syntaxhighlight lang="python" style="border:1px | <syntaxhighlight lang="python" style="border:1px black"> | ||
x = "Hello World!" | x = "Hello World!" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Quotes== | ==Quotes== | ||
<syntaxhighlight lang="python" style="border: | <syntaxhighlight lang="python" style="border:1px black"> | ||
y = "I like python!" | y = "I like python!" | ||
z = 'I like python!' | z = 'I like python!' | ||
Revision as of 04:45, 14 March 2018
Define a string
<syntaxhighlight lang="python" style="border:1px black"> x = "Hello World!" </syntaxhighlight>
Quotes
<syntaxhighlight lang="python" style="border:1px black"> y = "I like python!" z = 'I like python!' y_z = "I 'like' python!"
print y, z, y_z </syntaxhighlight>