+ 3

Strings and Integers

Are numbers (in Python) treated as integers by default, and letters treated as strings by default?

19th Apr 2018, 6:16 PM
arbaaz
3 Antworten
+ 1
Thank you all for your answers.
21st Apr 2018, 10:49 AM
arbaaz
0
Yes I believe ! Unless you specify otherwise like indexing numbers in string .
19th Apr 2018, 6:24 PM
Murad Ibrahim
Murad Ibrahim - avatar
0
integer for number _ Stringe for letters example: int B = 5 ; String A = "Steve jobs";
21st Apr 2018, 7:03 AM
Bilal Si Nacer