0
What would be " "
to form a string
4 ответов
+ 2
a = ' This is example of string '
b = " This is also example of string "
c = """ This is an
example of
multi line string """
d = ''' This is also an
example of
multi line string '''
these are the ways to represent strings in python
0
foo = "some text"
print(foo)
> some text
I don't know exactly what your question meant, but that's how strings go generally
0
Anything between single ,double, or triple quote can be a string
0
Only " " is a string with a space press saved.
So:
a="Hello"
b="World"
c=" "
z=a+c+b
Output:
Hello World