0
How to declare string
Please help me
4 Respostas
+ 4
Please specify the language.
https://www.sololearn.com/discuss/1316935/?ref=app
https://www.sololearn.com/discuss/333866/?ref=app
+ 2
I see you are using C# so in C# you define a string like this : string foo = “something” , you should use double quotes for declaring a string in C#
0
In python
String can be defined by different ways, like
X='hello world'
x=str(hello world)
These both are strings,
print(X)
print(x)
Will #output
hello world
hello world
- 1
There have a lot of programming language. And declare a string in a variable is defferant in those languages. But declaring just a string is same all over those languages. Just put string in double quotes or in single quotes will declare a string.