What would be " " | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What would be " "

to form a string

2nd Nov 2016, 5:00 PM
Sakshi Agarwal
Sakshi Agarwal - avatar
4 Respuestas
+ 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
2nd Nov 2016, 8:06 PM
Waqas Asghar Bhalli
Waqas Asghar Bhalli - avatar
0
foo = "some text" print(foo) > some text I don't know exactly what your question meant, but that's how strings go generally
2nd Nov 2016, 5:45 PM
Adrian Ellis
Adrian Ellis - avatar
0
Anything between single ,double, or triple quote can be a string
2nd Nov 2016, 7:20 PM
Abhishek Thakur
Abhishek Thakur - avatar
0
Only " " is a string with a space press saved. So: a="Hello" b="World" c=" " z=a+c+b Output: Hello World
3rd Nov 2016, 5:29 PM
Blender pro
Blender pro - avatar