Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> Bucky Roberts
SyntaxError: invalid syntax
>>> "Bucky Roberts"
'Bucky Roberts'
>>> 'Bucky Robert is awesome!'
'Bucky Robert is awesome!'
>>> 'I don't think shes 18'
SyntaxError: invalid syntax
>>> "I don't think shes 18"
"I don't think shes 18"
>>> 'She said, "waht part of the cow is the meatloaf from?" '
'She said, "waht part of the cow is the meatloaf from?" '
>>> 'I don\'t think shes 18'
"I don't think shes 18"
>>> print
<built-in function print>
>>> print("Hey now brown cow")
Hey now brown cow
>>> print('C:\Bucky\Desktop\nudePics')
C:\Bucky\Desktop
udePics
>>> print('C:\Bucky\Desktop\\nudePics')
C:\Bucky\Desktop\nudePics
>>> print(r'C:\Bucky\Desktop\\nudePics')
C:\Bucky\Desktop\\nudePics
>>> print(r'C:\Bucky\Desktop\nudePics')
C:\Bucky\Desktop\nudePics
>>> firstName = "Tony "
>>> firstName + "Jiang"
'Tony Jiang'
>>> firstName + "Tao"
SyntaxError: unexpected indent
>>> firstName + "Tao"
'Tony Tao'
>>> firstName * 5
'Tony Tony Tony Tony Tony '
>>> "r means 'row' string, used to tell the python interpreter not print format string"
"r means 'row' string, used to tell the python interpreter not print format string"
>>>
No comments:
Post a Comment