p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Strings I
Exercise: Different ways to create Python strings
Exercise: Different ways to create Python strings
Here, we use double quotes to assign the string "Hello World" to the variable text. Assign a new string to the variable using single quotes.
Premium
reset
text = "Hello World"
text =
print(text)
Python
Setting up Python environment...
Output