Python Strings
- Get link
- X
- Other Apps
# Use quotation marks for defining string
"Michael Jackson"
We can also use single quotation marks:
# Digitals and spaces in string
'1 2 3 4 5 6 '
A string can also be a combination of special characters :
# Special characters in string
'@#2_#]&*^%$'
We can print our string using the print statement:
# Print the string
print("hello!")
- Get link
- X
- Other Apps
Comments
Post a Comment