+ 1

42 is string?

17th Aug 2021, 10:21 AM
Tushar Kumar
8 Réponses
+ 5
42 is integer but if you write a number inside double quotes - "42" then it is a String.
17th Aug 2021, 10:28 AM
Nitin Tiwari
Nitin Tiwari - avatar
+ 3
No. 42 is a number. But "42" or '42' is a string.
17th Aug 2021, 10:34 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar
+ 2
If you find any number or character in single quotes ('_') or in bouble quotes ("_") that's a string. Keep in mind.
17th Aug 2021, 10:39 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar
+ 1
Tushar Kumar What is 1 2 3 4 5 6 7 8 9 10?
17th Aug 2021, 1:14 PM
A͢J
A͢J - avatar
+ 1
'42' is a string.
17th Aug 2021, 1:35 PM
Ananya | Inactive |
Ananya | Inactive | - avatar
0
"42" could also be one Can you at least, let us know which language you are referring to python or sql etc. It might help to paste your code here
19th Aug 2021, 2:39 AM
l4t3nc1
l4t3nc1 - avatar
0
For a number to be a string, it must be in quotes. So 42 is not a string but "42" or '42' are strings
19th Aug 2021, 5:26 AM
Tarawo Blessing