0

So what's the differences between int

and str?

26th Aug 2018, 1:40 PM
jill jealous
jill jealous - avatar
4 Respostas
+ 10
int is a integer. aka a number which you can perform math operations on it like adding, subtracting, dividing, etc str is a string. aka general text and letters. which can include numbers, but not in a way it can be mathematically modified. Example: intVar=412+1 strVar="I kissed my boyfriend 12 times today!"
26th Aug 2018, 1:51 PM
Ahri Fox
Ahri Fox - avatar
+ 7
jill jealous An interger is a number value. example 66 A string is an array of characters. (Usually inside double quotes.) example "word"
26th Aug 2018, 1:50 PM
Manual
Manual - avatar
+ 2
Integers are numbers without decimals. Strings are pieces of text enclosed in "".
26th Aug 2018, 1:49 PM
Paul Grasser
Paul Grasser - avatar
+ 2
Got it.thank you all,
26th Aug 2018, 1:55 PM
jill jealous
jill jealous - avatar