0
How do you create string in python
3 Answers
+ 4
You can also make a string out of practically everything with str() method.
For example:
x = 6.0
y = str(x)
print(y)
>>>
6.0 <-- this is actually a '6.0' string :)
+ 3
just put your code inside the quotes
var1 = 'Hello World'
or
var2 = "Hello World"
0
thanks