Actions

Difference between revisions of "Python values variables"

From ACL@NCU

(Created page with "==Define a string== <syntaxhighlight lang="python" style="border:3px solid black"> x = "Hello World!" </syntaxhighlight> ==Quotes== <syntaxhighlight lang="python" style="borde...")
 
Line 1: Line 1:
==Define a string==
==Define a string==
<syntaxhighlight lang="python" style="border:3px solid black">
<syntaxhighlight lang="python" style="border:1px solid black">
x = "Hello World!"
x = "Hello World!"
</syntaxhighlight>
</syntaxhighlight>
==Quotes==
==Quotes==
<syntaxhighlight lang="python" style="border:3px black">
<syntaxhighlight lang="python" style="border:3px black">

Revision as of 05:42, 14 March 2018

Define a string

x = "Hello World!"

Quotes

y = "I like python!"
z = 'I like python!'
y_z = "I 'like' python!"

print y, z, y_z