0
So what's the differences between int
and str?
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!"
+ 7
jill jealous
An interger is a number value. example 66
A string is an array of characters. (Usually inside double quotes.)
example "word"
+ 2
Integers are numbers without decimals. Strings are pieces of text enclosed in "".
+ 2
Got it.thank you all,